Azure / azure-iot-arduino

Azure IoT library for the Arduino
Other
168 stars 95 forks source link

Possible bug in, or related to use of, IoTHubClient_LL_SendReportedState() #56

Closed zoidicus closed 6 years ago

zoidicus commented 7 years ago

I cannot find an example demonstrating use of IoTHubClient_LL_SendReportedState() on the ESP8266. When I try use that function in an otherwise stable tutorial project, the device locks up moments later during a call to delay(10);. I've tried to alter the call sequence and delay durations, but the result is always the same. Execution freezes inside of delay() and the WDT resets the module after a few seconds.

I attempted to switch the entire project to the non _LL function variants, but they are not included (at least not fully).

JetstreamRoySprowl commented 7 years ago

Hi @zoidicus , the non-LL function variants will not work on Arduino because they require threading support that Arduino does not offer.

Can you supply the code where you're calling IoTHubClient_LL_SendReportedState() from?