Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core MQTT error on WiFi disconnect (CA-304) #193

Open
esp32person opened this issue Jul 24, 2023 · 1 comment
Open

Core MQTT error on WiFi disconnect (CA-304) #193

esp32person opened this issue Jul 24, 2023 · 1 comment

Comments

@esp32person
Copy link

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

@github-actions github-actions bot changed the title Core MQTT error on WiFi disconnect Core MQTT error on WiFi disconnect (CA-304) Jul 24, 2023
@SolidStateLEDLighting
Copy link

You render SNTP invalid and you send a notification to MQTT to shut down.

Upon Wifi, reconnect, you first restart SNTP and allow it to validate your system time, and then start MQTT again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants