Closed Lahorde closed 8 years ago
Hi, Lahorde. I tyr to use mosquitto 1.4.4(latest, mosquitto version 1.4.4 (build date 2015-11-04 19:18:23+0900)) now, photon with mqtt mqtttest.ino(check mqtt example on photon) works well. may be you use same use id on pub/sub? If use same use id, can't connect to mosquitto.
Hi hirotakaster,
I've just performed some new tests and I do not have anymore any disconnections with MQTT 1.4.3. I did not use same id on pub/sub. There is just 1 difference in setup, I moved to another wifi network mosquitto server and photn.
When using MQTT library, I lost some notifications. I added logs and discovered MQTT client often disconnects. I have another client that is connected to broker on same topic : it does not disconnect.
Here is code that runs on photon : https://github.com/OpHaCo/roomba_wifi/blob/master/roomba-control.ino Mosquitto server is :
Here are mosquitto logs :
Here are photon logs :
I tried with iot.eclipse.org and
and it works fine. No messages are lost, photon client is not disconnected.