espduino icon indicating copy to clipboard operation
espduino copied to clipboard

ESPDuino Connect/Reconnect

Open rupin opened this issue 9 years ago • 4 comments

Hi, I have been using an arduino + ESP-01 module and wired them as depicted on your github page.

Apparently an arduino sketch has been functional from a couple of days, and when I started it today, I get the following error

TCP: Reconnect to: m11.cloudmqtt.com:17478 DNS: found ip 107.22.157.224 TCP: connecting... TCP: Reconnect to m11.cloudmqtt.com:17478 Free memory TCP: Connect to domain m11.cloudmqtt.com:17478 TCP: Reconnect to: m11.cloudmqtt.com:17478 DNS: found ip 107.22.157.224 TCP: connecting... TCP: Reconnect to m11.cloudmqtt.com:17478 Free memory TCP: Connect to domain m11.cloudmqtt.com:17478 TCP: Reconnect to: m11.cloudmqtt.com:17478 DNS: found ip 107.22.157.224 TCP: connecting... TCP: Reconnect to m11.cloudmqtt.com:17478 Free memory TCP: Connect to domain m11.cloudmqtt.com:17478 TCP: Reconnect to: m11.cloudmqtt.com:17478 DNS: found ip 107.22.157.224 TCP: connecting... TCP: Reconnect to m11.cloudmqtt.com:17478

I could not figure out why it would do this. Is this because some setting has changed on the broker?

rupin avatar Jun 05 '15 18:06 rupin

@rupin Can you share the code?

eschlenz avatar Jun 11 '15 14:06 eschlenz

I am using the debug version of the MQTT bridge. I reuploaded code on the ESP-01 very recently.

My arduino code is the same as the mqtt demo given in this repo.

rupin avatar Jun 11 '15 17:06 rupin

I assume you tried pointing to another MQTT broker, just to rule out an issue with connecting to the one you are pointed at (m11.cloudmqtt.com)? Did you try pointing to test.mosquitto.org:1833?

eschlenz avatar Jun 11 '15 18:06 eschlenz

I have been trying to use espduino and borrow off the mqtt example.

I tried making the system persistent by making cleansession = 0 in the call to mqtt.begin

But the broker does not accept the client on reconnecting, and instead shows a new client connection.

We suspect that the persistent connection does not work. Is there something I am missing?

Also, which version of Mqtt does this library use?

sriramvis avatar Apr 28 '16 08:04 sriramvis