Open vadym-kozak opened 1 year ago
Hello, mqttClient?.autoReconnect = true
is only triggered until ConnAck
status is not success.
I am also having issues during poor network conditions or when switching from Wi-Fi to Cellular due to poor Wi-Fi signal strength or leaving home/access-point.
The issue I've been seeing is that the connection can get hung in the "connecting" state and the timeout never seems to fire. I've added a work-around by setting my own timer when starting a connection.
Hi, I have connection issues in case of very bad network connection or even when its being lost and then restored. I did this simulation on iOS using Settings-> Developer -> Network Link Conditioner and switching between different network profiles. Also it is happening in real life when network is unstable. So code is
It's never reconnect again