quartiq / minimq

Minimal no_std MQTT v5.0 client implementation
MIT License
143 stars 16 forks source link

Multiple socket disconnections may cause the client to fail to reconnect #125

Closed ryan-summers closed 1 year ago

ryan-summers commented 1 year ago

If the TCP socket connection is lost immediately after the socket is opened, but before the Connect packet can be sent, the state machine gets stuck in a way that means that the MQTT client will never reconnect to the broker.

The only method to force a reconnection would be a forced power cycle of the device.

Identified in https://github.com/quartiq/stabilizer/issues/674