Unable to connect (error 5), connect/disconnect and device gone


#1

Hey there,

I was testing the Cayenne mobile app, delleted some old devices and suddenly my Arduino started to connect and disconnect continuously. Logged out and in from the site and on login I was sent on a “first visit page” and getting “[185025] MQTT connect failed, error 5” on serial console.

A bit later, started to get again connect/disconnect on serial:

“Humidity: 28.90 % Temperature: 24.00 *C Heat index: 23.21 *C
[420511] Disconnected
[420511] Connecting to mqtt.mydevices.com:1883
[420945] Connected
Humidity: 28.90 % Temperature: 24.00 *C Heat index: 23.21 *C
[424867] Disconnected
[424867] Connecting to mqtt.mydevices.com:1883
[426784] Connected
Humidity: 29.00 % Temperature: 24.00 *C Heat index: 23.21 *C
[430694] Disconnected
[430694] Connecting to mqtt.mydevices.com:1883
[431136] Connected”

My Arduino disappeared completely from the site and mobile app. I am quite sure didn’t deleted myself.

  • Arduino Uno with W5100 ethernet shield

  • Both Web and iOS


#2

I have recreated the device and noted that the CLIENT ID was different. Not sure what happened, maybe someone can lok into it, it was clearly a bug.


#3

Did you use the same client ID for the two devices?

Can you let us know if you reproduce it again so we can take a look at your account? Thanks!

~Benny