/** * Receive notification that we are offline<br> * if cleanSession is true, we need to regard this as a disconnection */ void offline() { if (!disconnected && !cleanSession) { Exception e = new Exception("Android offline"); connectionLost(e); } }
/** * Receive notification that we are offline<br> * if cleanSession is true, we need to regard this as a disconnection */ void offline() { if (!disconnected && !cleanSession) { Exception e = new Exception("Android offline"); connectionLost(e); } }
/** * Receive notification that we are offline<br> * if cleanSession is true, we need to regard this as a disconnection */ void offline() { if (!disconnected) { Exception e = new Exception("Android offline"); connectionLost(e); } if(isConnecting){ Exception e = new Exception("Android offline"); connectionLost(e); } }
@Override public void onFailure(IMqttToken asyncActionToken, Throwable exception) { resultBundle.putString( MqttServiceConstants.CALLBACK_ERROR_MESSAGE, exception.getLocalizedMessage()); resultBundle.putSerializable( MqttServiceConstants.CALLBACK_EXCEPTION, exception); service.callbackToActivity(clientHandle, Status.ERROR, resultBundle); connectionLost(exception); doAfterConnectFail(resultBundle); } };