espressif / esp-azure

SDK to connect ESP8266 and ESP32 to Microsoft Azure IoT services
176 stars 92 forks source link

Device disconnects after ~49 days online (CA-138) #119

Open SeriousD opened 3 years ago

SeriousD commented 3 years ago

Hello, I am using this azure intergration in production and noticed that the devices disconnect after ~49 days. I think the problem lies in the implementation of tickcounter_get_current_ms, since the 32 bit value overflows after this time.

Is there any way to fix this behaviour?

I am using commit 6c17e3a64c02eff3a4f726ce4b7248ce11810833 for ESP-IDF and commit b67efd790d0475169cbf7cabbd63edccc7720a9f for esp-azure.

Greetings SeriousD