i learn API just from example,it very useful,but i need some other query function, the API may like "url += "GET /Api/EasyIoT/Control/Module/Virtual/" + String(EIOT_NODE) + "/ControlLevel/" + String(value); "
wony366 wrote: Is there any api document for EasyIoT Server?
i learn API just from example,it very useful,but i need some other query function, the API may like "url += "GET /Api/EasyIoT/Control/Module/Virtual/" + String(EIOT_NODE) + "/ControlLevel/" + String(value); "
Is there any api document for EasyIoT Serve ?
i run it in Raspberry PI II .
waitting for repond,thank you.
Virtual driver uses the same API as WEB interface. You can check calls in your browser to see how to communicate with virtual module. In Cloud version this is replaced with REST API, which is documented.
i used WireShark to grab the raspberry pi ip , found the API is :
GET /Api/EasyIoT/Events/RealTime.EventStream/?lastEventId=1.47894927500689E%2B15&r=107797914277611 HTTP/1.1\r\n
and then some other Authorization info
but i don't know how to get "lastEventId" and "r" like below ? if i want qurey last module value。
Request URI Query Parameter: lastEventId=1.47894927500689E%2B15
Request URI Query Parameter: r=107797914277611
and there is another problem, when i check module history value in chart ,it's just a line , just one value always, and when the value is update , last value can't show in chart.
i try to chmod the database file ,but the problem is still 。 how to solve it ?