reproduce steps: 1.paho client is sending data to broker for every ten seconds 2.unplug the network cable, 3.after a while, broker shows "" Client RTUv2_Client2 has exceeded timeout, disconnecting" 4.wait for long time, MQTTAsync_isConne...
private synchronized IMqttAsyncClient checkConnection() throws MqttException { if (this.client != null && !this.client.isConnected()) {
I don't yet have a deterministic way of reproducing this behavior, sorry for that, but it has happened to me several times that MqttClient.PublishAsync(...) throws an MQTTnet.Exceptions.MqttCommunicationException exception with message "The client is not connected.", but a check on MqttClien...
origin:eclipse/paho.mqtt.android MqttConnection.isConnected() /*** @return true if we are connected to an MQTT server*/publicbooleanisConnected() {returnmyClient != null && myClient.isConnected();} origin:aws-amplify/aws-sdk-android