77
EPD-023 User Manual
Chapter 4
E
PD-023
in
ePaper
Manager
// set LED light
function setSensorData(){
var agentid = $('#agentid').val();
var plugin = $('#plugin').val();
var sensorId = $('#sensorId').val();
var sensorValue = parseInt($('#sensor-
Value').val());
var url = HOST + '/esl/v1/devicectrl/data';
var type = 'POST';
var data = {agentId: agentid, plugin: plugin,
sensorIds: [{n: sensorId, v: sensorValue}]};
api(url, type, data, function(res){
console.log(JSON.stringify(res));
if(res && res.items && res.items.length > 0
&& (res.items[0].statusCode === 202 || res.items[0].statusCode
=== 200)){
alert("Update Sensor Data Command Sended!")
} else {
alert("Ajax request error!");
}
});
}
For more API, user may check next chapter.
4.5
Control EPD Data through ePaper Manager 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
body paramters:
–
code: string
Содержание EPD Series
Страница 1: ...User Manual EPD Device EPD 023 System Solution Wireless ePaper Display Solution ...
Страница 11: ...Chapter 1 1 Product Overview ...
Страница 14: ...EPD 023 User Manual 4 ...
Страница 15: ...Chapter 2 2 EPD 023 Network Specification ...
Страница 21: ...Chapter 3 3 Hardware Specification ...
Страница 25: ...Chapter 4 4 EPD 023 in ePaper Manager ...
Страница 28: ...EPD 023 User Manual 18 ...
Страница 33: ...23 EPD 023 User Manual Chapter 4 EPD 023 in ePaper Manager Please allow to access the installation of erl exe ...
Страница 35: ...25 EPD 023 User Manual Chapter 4 EPD 023 in ePaper Manager ...
Страница 37: ...27 EPD 023 User Manual Chapter 4 EPD 023 in ePaper Manager ...
Страница 48: ...EPD 023 User Manual 38 3 Add Gateway Router to Group ...
Страница 60: ...EPD 023 User Manual 50 ...
Страница 74: ...EPD 023 User Manual 64 4 Binding template ...
Страница 80: ...EPD 023 User Manual 70 3 Clear operation system events 1 Open the Clear Operation System Events section ...
Страница 85: ...75 EPD 023 User Manual Chapter 4 EPD 023 in ePaper Manager ...
Страница 94: ...EPD 023 User Manual 84 Action Bind Template User can manual binding TEMPLATE to EPD device ...
Страница 106: ...EPD 023 User Manual 96 Document User manual Restful API Release Notes ...
Страница 107: ...Chapter 5 5 WISE EC EPD Design in Service ...
Страница 115: ...105 EPD 023 User Manual Chapter 5 WISE EC EPD Design in Service ...