Azure-Samples / iot-hub-feather-huzzah-client-app

Application collects weather data from a DHT22 sensor and sends it to IoT hub, also take actions according to cloud-to-device message.
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-arduino-huzzah-esp8266-get-started
MIT License
35 stars 31 forks source link

Please include sample call to IoTHubClient_LL_SendReportedState() to update twin properties. #17

Open zoidicus opened 7 years ago

zoidicus commented 7 years ago

Title says it all. This code is referenced by a lot of tutorials, yet it does not demonstrate updating of twin reported properties (call to IoTHubClient_LL_SendReportedState); a key feature of Azure Iot Hub.

My attempts to figure it out have produced mixed results. It works the first time, and then seconds later the module hangs in a delay() call at bottom of loop(). Changing duration doesn't help. WDT then resets the module and I get one more success before the next WDT reset.