is there any api document for EasyIoT Server?

8 years 1 month ago - 8 years 1 month ago #3562 by wony366
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.

Please Log in or Create an account to join the conversation.

8 years 1 month ago #3569 by EasyIoT

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.

Please Log in or Create an account to join the conversation.

8 years 1 month ago #3570 by wony366
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

Please Log in or Create an account to join the conversation.

8 years 1 month ago #3571 by wony366
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 ?

Please Log in or Create an account to join the conversation.

Time to create page: 0.178 seconds

Forum latest

  • No posts to display.