sensor value via API

9 years 2 months ago #2100 by bit
sensor value via API was created 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.

9 years 2 months ago #2102 by EasyIoT
Replied by EasyIoT on topic sensor value via API

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.

9 years 2 months ago #2103 by bit
Replied by bit on topic sensor value via API
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.

9 years 2 months ago #2112 by EasyIoT
Replied by EasyIoT on topic sensor value via API

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.

9 years 2 months ago #2127 by bit
Replied by bit on topic sensor value via API
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.

9 years 2 months ago #2146 by EasyIoT
Replied by EasyIoT on topic sensor value via API

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.

Time to create page: 0.296 seconds

Forum latest

  • No posts to display.