Integrate Epd Apis Into Your System - Advantech EPD-230 User Manual

Wireless epaper display solution
Table of Contents

Advertisement

4.4

Integrate EPD APIs Into Your System

We provide easy-to-use APIs to help you integrate into your own system. Below are
samples for you. They are easy to integrate into your system with our restful APIs.
Vertical applications need to send APIs to DeviceOn/ePaper. Sample code below.
1.
Our API in Javascript: setItemData to update data into DeviceOn/ePaper and
DeviceOn/ePaper will help forward the data to EPD.
// update Item Data
function setItemData(){
var url = HOST + '/esl/v1/items';
var type = 'PUT';
var data = {
"items": [ JSON.parse($('#log').val()) ]
};
console.log(data);
api(url, type, data, function(res){
if(res && res.result)
alert("Item Successfully Updated!");
else
alert("Ajax request error!");
});
}
53
EPD-230/232 User Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Epd-232

Table of Contents