Skip to content

ESP restarts on MQTT.connect #1072

Description

@nygma2004

I am puzzled by this issue, I picked up some projects that I used a few years ago, and when I re-compile them and upload to the ESP the watchdog timer re-starts the ESP during MQTT.connect.
I am using the ArduinoIDE 2.3.4, PubSubClient 2.8 installed and I updated the rest of my libs, boards.
I found some article suggesting to change the MQTT_SOCKET_TIMEOUT from 15 to 1, but that just results in rc=-4.
I have an older laptop, with older ArdunioIDE, older board, but same PubSubClient 2.8 and after re-compiling the project it works. Connects to MQTT without any issues.
And this keeps coming up in the log file:

1737838075: New connection from 192.168.1.129:59095 on port 1883.
1737838078: Client <unknown> has exceeded timeout, disconnecting.

I am completely clueless.
And this happens from the first connection attempts after boot. I checked the client id is unique (I add the end of the mac address to it).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions