Forum
EasyIoT server
General
sensor value via API
sensor value via API
Less
More
Posts: 44
Karma: 2
Thank you received: 8
9 years 2 months ago #2100
by bit
hello everybody,
i know how to set sensor's value via API.
is actually possible get sensor's value via API?
i haven't found docs/examples about that.
thanks
I'm sorry for my poor english.
Please Log in or Create an account to join the conversation.
Less
More
Posts: 862
Karma: 25
Thank you received: 264
9 years 2 months ago #2102
by EasyIoT
bit wrote: hello everybody,
i know how to set sensor's value via API.
is actually possible get sensor's value via API?
i haven't found docs/examples about that.
thanks
Sensor values are transferred in node property. Use module helper to read property value:
GetProperty(string domain, string address, string property)
for more info read:
iot-playground.com/2-uncategorised/32-ea...-automation-part-iii
Please Log in or Create an account to join the conversation.
Less
More
Posts: 44
Karma: 2
Thank you received: 8
9 years 2 months ago #2103
by bit
thanks for reply.
i need to retrieve sensor's value in a web page, so i can't use module helper...
I'm sorry for my poor english.
Please Log in or Create an account to join the conversation.
Less
More
Posts: 862
Karma: 25
Thank you received: 264
9 years 2 months ago #2112
by EasyIoT
bit wrote: thanks for reply.
i need to retrieve sensor's value in a web page, so i can't use module helper...
try this:
http://[server IP]/Api/EasyIoT/Config/Module/List
and use basic authorization. This function will return all modules and it's values.
Please Log in or Create an account to join the conversation.
Less
More
Posts: 44
Karma: 2
Thank you received: 8
9 years 2 months ago #2127
by bit
hi,
it will be an hard work of string manipulation, but it's better than nothing.
a specific API could be very useful.
thank you.
I'm sorry for my poor english.
Please Log in or Create an account to join the conversation.
Less
More
Posts: 862
Karma: 25
Thank you received: 264
9 years 2 months ago #2146
by EasyIoT
bit wrote: hi,
it will be an hard work of string manipulation, but it's better than nothing.
a specific API could be very useful.
thank you.
I'ts JSON. Use JSON library to access data.
Please Log in or Create an account to join the conversation.
Forum
EasyIoT server
General
sensor value via API
Time to create page: 1.703 seconds