Integrate Epd Apis Into Your System - Advantech EPD Series 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 is the
sample for you to understand it's very easy to integration into your system with our
restful API.
Vertical application need to send Api to ePaper manager the sample code as below.
1.
Our API in Javascript below: setItemData to update data into ePaper manager
and ePaper manager will help forward the data to EPD.
2.
User also can use our api: setSensorData to control EPD LED
EPD-023 User Manual
// 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!");
});
}
76

Advertisement

Table of Contents
loading

This manual is also suitable for:

Epd-023Epd-053

Table of Contents