I’m trying to get better performance in my project when my devices lose WiFi connection.
I’ve not yet been able to capture a core dump, but I’m seeing some connection issues int the logs after network drops out. I’m wondering if there is anything I should be doing to monitor MQTT channels and do something when WiFi disconnects.
mgos_rpc_channel_ws:263 0x3ffc6cc0 Connecting to wss://mdash.net/api/v2/rpc, SSL? 1 mongoose.c:12068 Failed to resolve 'mdash.net', server 192.168.67.177 mgos_rpc_channel_ws:205 0x3ffc6cc0 TCP connect failed: -1 main.c:1901 Cloud disconnected (1)
mgos_mqtt_conn.c:471 MQTT0 connecting to mqtt.2030.ltsapis.goog:8883 mongoose.c:12068 Failed to resolve 'mqtt.2030.ltsapis.goog', server 192.168.67.177 mgos_mqtt_conn.c:230 MQTT0 TCP connect error (-1) mgos_mqtt_conn.c:256 MQTT0 Disconnect mgos_mqtt_conn.c:549 MQTT0 connecting after 63067 ms
The device usually stays up for about 30-60 minutes before crashing, but because my devices are setup in the field I don’t have easy access to core dumps, unless there is another way other than UART.
Any ideas or help would be much appreciated.