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?
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.