paho.mqtt.android icon indicating copy to clipboard operation
paho.mqtt.android copied to clipboard

connect onFailure() (0)

Open wall3001 opened this issue 5 years ago • 2 comments

mqtt connect error, the IMqttActionListener callback onFailure shows that "connect onFailure() (0)" It has been called by per 5ms.Then I try to reconnect per 30s ,it still failed.

wall3001 avatar Jul 16 '20 02:07 wall3001

in MqttDefaultFilePersistence.java invoke this method then causes this MqttPersistenceException. private void restoreBackups(File dir) throws MqttPersistenceException { File[] files = dir.listFiles(new PersistanceFileFilter(MESSAGE_BACKUP_FILE_EXTENSION));

	if (files == null) {
		throw new MqttPersistenceException();
	}

wall3001 avatar Jul 21 '20 09:07 wall3001

有解决办法吗?

BigKarel avatar Jan 07 '21 13:01 BigKarel