vladak / shield

code for ESP32 Adafruit Feather to get various sensor readings and publish them to MQTT broker
2 stars 0 forks source link

verify that the message was received by MQTT broker by subscribing to the topic #1

Closed vladak closed 1 year ago

vladak commented 2 years ago

Sometimes it happens that even though the message is reported by code.py as published, the MQTT broker does not receive it - at least according to the output from mosquitto_sub -d -t "devices/terasa/shield". For better robustness it might make sense to subscribe to the topic and verify the message was received. If not, throw an exception to retry.

vladak commented 1 year ago

I don't this will help. The nature of the issue is likewise somewhere in the WiFi or TCP/IP stack.