steamlink / steamlink-arduino

Arduino client library for steamlink protocol
3 stars 3 forks source link

mqtt reconnect fail #2

Open awrede opened 6 years ago

awrede commented 6 years ago

Observed an infinite loop of mqtt re-connect attempts, maybe caused by ip/wifi stack issues. Should the node reset after a certain number of unsuccessful attempts?

05-08 07:18:57: Connection failedMQTT connecting to:
05-08 07:18:57: Server: mqtt.steamlink.net:8883
05-08 07:18:57: At millis: 116688888
05-08 07:19:04: Connection failedMQTT connecting to:
05-08 07:19:04: Server: mqtt.steamlink.net:8883
05-08 07:19:04: At millis: 116695913
05-08 07:19:11: Connection failedMQTT connecting to:
05-08 07:19:11: Server: mqtt.steamlink.net:8883
05-08 07:19:11: At millis: 116702937
05-08 07:19:18: Connection failedMQTT connecting to:
05-08 07:19:18: Server: mqtt.steamlink.net:8883
05-08 07:19:18: At millis: 116709987
05-08 07:19:25: Connection failedSteamLinkGeneric::update Sending heartbeat...
05-08 07:19:25: SteamLinkGeneric::send_ss packet: 
05-08 07:19:25: SteamLinkGeneric::send_data malloc: 3FFF4E74
05-08 07:19:25: SLID: 289SteamLinkGeneric:: generic_send():: send pkt via BRIDGE or PHY:
05-08 07:19:25:  
05-08 07:19:25: |-----------------------------------|
05-08 07:19:25: |         START OF PACKET           |
05-08 07:19:25: |-----------------------------------|
05-08 07:19:25: |           DATA HEADER             |
05-08 07:19:25: |-----------------------------------|
05-08 07:19:25: | OP      : 3D <-> SS 
05-08 07:19:25: | SLID    : 289 <-> HEX: 121
05-08 07:19:25: | PKG NUM : 231
05-08 07:19:25: | RSSI    : 203
05-08 07:19:25: |-----------------------------------|
05-08 07:19:25: |           END OF PACKET           |
05-08 07:19:25: |-----------------------------------|
05-08 07:19:25:  
05-08 07:19:25: SLID: 289SteamLinkGeneric:: generic_send():: sending pkt via PHY
05-08 07:19:25: enqueue len: 11
05-08 07:19:25: MQTT connecting to:
05-08 07:19:25: Server: mqtt.steamlink.net:8883
05-08 07:19:25: At millis: 116717042
05-08 07:19:32: Connection failedSteamLinkGeneric::update: about to dequeue
05-08 07:19:32: Sending user string over mqtt
05-08 07:19:32: SteamLinkESP::driver_send len: 11 to: 1 test:  packet: 
05-08 07:19:32: 3d 21 01 00 00 e7 00 cb 4f 4b 00 =!......OK.
05-08 07:19:32: MQTT not connected, Dropping user packet
05-08 07:19:32: SteamLinkGeneric::update driver_send dropping packet!!
05-08 07:19:32: MQTT connecting to:
05-08 07:19:32: Server: mqtt.steamlink.net:8883
05-08 07:19:32: At millis: 116724005