Page 1 of 1

CoreMQTT error on WiFi disconnect

Posted: Mon Jul 24, 2023 7:47 pm
by esp32person
Hi,

When Wifi disconnects, I am getting the repeating error below,

E (115491) coreMQTT: Call to receiveSingleIteration failed. Status=MQTTRecvFailed
E (116001) esp-tls-mbedtls: read error :-0x004C:
E (116001) coreMQTT: Call to receiveSingleIteration failed. Status=MQTTRecvFailed
E (116501) esp-tls-mbedtls: read error :-0x004C:
....

Closing MQTT broker and server connection when WiFi fails and restarting server and Mqtt broker connection, fails to connect even after wifi connection is restored and the error keeps repeating. A restart fixes the issue.

Any ideas what I could do on wifi disconnect?

Thanks