Control Epd Data Through Deviceon/Epaper Api - Advantech EPD-230 User Manual

Wireless epaper display solution
Table of Contents

Advertisement

2.
The user also can use: setSensorData to control EPD LED
Value').val());
sensorIds: [{n: sensorId, v: sensorValue}]};
&& (res.items[0].statusCode === 202 || res.items[0].statusCode
=== 200)){
4.5
Control EPD Data Through DeviceOn/ePaper
API
1. Upload EPD Data
path: /esl/v1/items
method: POST
header: Basic Authorization
body paramters:
code: string
name (group name): string
content: JSON string
body(example)
{ "items": [ { "code": "X001", "name": "John", "content: "{"name": "John","age":
"18"}" } ] }
response(example)
{ "result": true }
2. Upload EPD Data for a specific item group
path: /esl/v1/items/name/{name}
method: POST
header: Basic Authorization
EPD-230/232 User Manual
// set LED light
function setSensorData(){
var agentid = $('#agentid').val();
var plugin = $('#plugin').val();
var sensorId = $('#sensorId').val();
var
sensorValue
var url = HOST + '/esl/v1/devicectrl/data';
var type = 'POST';
var data = {agentId: agentid, plugin: plugin,
api(url, type, data, function(res){
console.log(JSON.stringify(res));
if(res && res.items && res.items.length > 0
alert("Update Sensor Data Command Sended!")
} else {
alert("Ajax request error!");
}
});
}
=
parseInt($('#sensor-
54

Advertisement

Table of Contents
loading

This manual is also suitable for:

Epd-232

Table of Contents