I'm having trouble understanding how a cloud server sends data to a IoT device. My IoT device can send HTTP requests to the cloud server just fine but how would the server ping the device?
Thanks for the info. So how does a Wemo switch get a command to turn on/off lights?
--
You received this message because you are subscribed to the Google Groups "API Craft" group.
To unsubscribe from this group and stop receiving emails from it, send an email to api-craft+...@googlegroups.com.
Visit this group at http://groups.google.com/group/api-craft.
For more options, visit https://groups.google.com/d/optout.
Great question. :)
One way to accomplish your goal of sending notifications from the server to the client is to have the client initiate a long-running request to the server. It sends the request and waits a specified time for a response before initiating another request.
Depending on the frequency needs, you can try setting (on the server) the request timeout value to 5 or 20 or 60 minutes. Then when the server has something to "push" it sends a response to the client. This is a different approach compared to a client polling strategy.
Hopefully this helps!
Regards,
Robert
CTO
Cloud 5 Systems, LLC
www.cloud5systems.com
Cloud5 Systems