I've been trying to nail down this bug for months and am coming up empty. I'm using V2.1.0 of Adafruit_MQTT_library together with an ATmega2560. After a random period of time, the connection to Adafruit fails and the client goes through 3 retries, fails and waits for watchdog restart. The restart goes fine, no auth or comm problems and then some random time later, the same connection problem. The random period of time can vary from minutes to hours to days. I've captured the conversation trace and was wondering if anyone can see something not right or point me to another troubleshooting process?
Packet Type: @ [0x40],
Read data: [0x02],
Packet Length: 2
Read data: [0x20], [0x9D],
Publish QOS1+ reply: @ [0x40], [0x02], [0x20], [0x9D],
MQTT publish packet:
2 [0x32], & [0x26], [0x00], ! [0x21], p [0x70], e [0x65], d [0x64], a [0x61],
l [0x6C], e [0x65], r [0x72], m [0x6D], i [0x69], k [0x6B], e [0x65], / [0x2F],
f [0x66], e [0x65], e [0x65], d [0x64], s [0x73], / [0x2F], s [0x73], e [0x65],
n [0x6E], s [0x73], e [0x65], - [0x2D], d [0x64], b [0x62], l [0x6C], g [0x67],
a [0x61], r [0x72], a [0x61], g [0x67], e [0x65], [0x20], [0x9E], 0 [0x30],
Client sendPacket returned: 40
2020-12-11 19:00:14 Message Publish QOS1+ reply:
MQTT publish packet:
2 [0x32], & [0x26], [0x00], ! [0x21], p [0x70], e [0x65], d [0x64], a [0x61],
l [0x6C], e [0x65], r [0x72], m [0x6D], i [0x69], k [0x6B], e [0x65], / [0x2F],
f [0x66], e [0x65], e [0x65], d [0x64], s [0x73], / [0x2F], s [0x73], e [0x65],
n [0x6E], s [0x73], e [0x65], - [0x2D], s [0x73], g [0x67], l [0x6C], g [0x67],
a [0x61], r [0x72], a [0x61], g [0x67], e [0x65], [0x20], [0x9F], 0 [0x30],
Connection failed!
MQTT publish packet:
2 [0x32], ' [0x27], [0x00], " [0x22], p [0x70], e [0x65], d [0x64], a [0x61],
l [0x6C], e [0x65], r [0x72], m [0x6D], i [0x69], k [0x6B], e [0x65], / [0x2F],
f [0x66], e [0x65], e [0x65], d [0x64], s [0x73], / [0x2F], s [0x73], e [0x65],
n [0x6E], s [0x73], e [0x65], - [0x2D], h [0x68], u [0x75], m [0x6D], i [0x69],
d [0x64], i [0x69], f [0x66], i [0x69], e [0x65], r [0x72], [0x20], [0xA0],
0 [0x30],
Connection failed!
[12/11/2020 19:00:14] FLI/A: 67/58 Temp F: G
2020-12-11 19:00:15 Message 46/O40/F41/H68
2020-12-11 19:00:15 Message /R67 WSI/A: 3.84/3.80 mph
MQTT publish packet:
2 [0x32], * [0x2A], [0x00], [0x18], p [0x70], e [0x65], d [0x64], a [0x61],
l [0x6C], e [0x65], r [0x72], m [0x6D], i [0x69], k [0x6B], e [0x65], / [0x2F],
f [0x66], e [0x65], e [0x65], d [0x64], s [0x73], / [0x2F], s [0x73], t [0x74],
a [0x61], t [0x74], u [0x75], s [0x73], [0x20], [0xA1], [ [0x5B], F [0x46],
O [0x4F], X [0x58], B [0x42], O [0x4F], T [0x54], ] [0x5D], [0x20], S [0x53],
- [0x2D], H [0x48], B [0x42], ! [0x21],
Connection failed!
[12/11/2020 19:00:14] Tried to publish S-HB but Failed.
[12/11/2020 19:00:14] Connecting to MQTT... Connecting to: io.adafruit.com
2020-12-11 19:00:15 Message Connect result: 0
[12/11/2020 19:00:14] Connection failed
[12/11/2020 19:00:14] Comm Failure!
3 - Retrying MQTT connection in 2 seconds...
MQTT disconnect packet:
[0xE0], [0x00],
Connection failed!
Unable to send disconnect packet
2020-12-11 19:00:17 Message Connecting to: io.adafruit.com
Connect result: 0
[12/11/2020 19:00:16] Connection failed
[12/11/2020 19:00:16] Comm Failure!
2 - Retrying MQTT connection in 2 seconds...
MQTT disconnect packet:
[0xE0], [0x00],
Connection failed!
Unable to send disconnect packet
2020-12-11 19:00:19 Message Connecting to: io.adafruit.com
2020-12-11 19:00:19 Message Connect result: 0
[12/11/2020 19:00:19] Connection failed
[12/11/2020 19:00:19] Comm Failure!
1 - Retrying MQTT connection in 2 seconds...
MQTT disconnect packet:
[0xE0], [0x00],
Connection failed!
Unable to send disconnect packet
2020-12-11 19:00:21 Message [12/11/2020 19:00:21] Connection not working. Waiting for reset!
2020-12-11 19:00:23 Message VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV STARTUP VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
Random Connection Failure
Moderators: adafruit_support_bill, adafruit
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.