how can i get sensor date from cloud?

9 years 2 weeks ago #2469 by flash
Hi all,
i`m a new guy.i want get a status of relay from cloud,so i can remote control it.i just found EIoTCloudRestApi::sendParameter in EIoTCloudRestApi,but no like "getParameter" function,i found "// URL: /RestApi/SetParameter/[instance id]/[parameter id]/[value]",but i try " /RestApi/GetParameter/[instance id]/[parameter id]" ,response "404 http not found",how can i get sensor date from cloud?

thanks

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

9 years 2 weeks ago #2471 by EasyIoT

flash wrote: Hi all,
i`m a new guy.i want get a status of relay from cloud,so i can remote control it.i just found EIoTCloudRestApi::sendParameter in EIoTCloudRestApi,but no like "getParameter" function,i found "// URL: /RestApi/SetParameter/[instance id]/[parameter id]/[value]",but i try " /RestApi/GetParameter/[instance id]/[parameter id]" ,response "404 http not found",how can i get sensor date from cloud?

thanks


Hi, right now REST API does not support get method. I do not know if this is the best way to control relay, because you need to constantly pool status. We will prepare MQTT driver tutorial where you can control relay in real time without pooling.
The following user(s) said Thank You: flash

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

9 years 2 weeks ago #2472 by flash
thanks your reply,if i can get sensor status from cloud using api(MQTT i never used) ,i can remotely control on my smartphone.i will see MQTT driver

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

Time to create page: 0.225 seconds

Forum latest

  • No posts to display.