I am using nodemcu and successfully sending data to azure IoT hub. However if the wifi AP reboots then nodemcu stops sending the messages because IoT hub hasn't accepted the previous message yet. In another case if there are packet loss in the link the same issue occurs.
Can we set a timeout value in case the message is not accepted within the time specified then reinitiate the wifi connection?
I am using nodemcu and successfully sending data to azure IoT hub. However if the wifi AP reboots then nodemcu stops sending the messages because IoT hub hasn't accepted the previous message yet. In another case if there are packet loss in the link the same issue occurs. Can we set a timeout value in case the message is not accepted within the time specified then reinitiate the wifi connection?