Closed tomasol closed 6 years ago
Note that I am running a slightly modified version of your lib: https://github.com/tomasol/rumqtt/tree/12c5ba661571115c5cdc7bb2590f2411893ea394 , but changes were only made for sending puback after on_message callback ( #94 ).
Another note: I would suggest adding reconnect strategy even if MqttClient::start
fails to connect first time.
Thanks for the report @tomasol. Unfortunately I don't have the bandwidth to verify/fix this. I just pushed a work in progress v3 branch. Can you give a shot to that?
Please reopen this if you are facing issues with the new master branch
I have automatic reconnection set, but after randmly restarting mqtt broker I have seen:
I've modified start function in client.rs:
and the result is
Err(InvalidPacket)
. With the workaround the client will not die and continues to reconnect. Not sure where that comes from.