You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having updated the firmware to a latest release (yes I know it's not final yet) on my Enviro Urban board I found that it stopped sending to my MQTT broker.
After some digging I found in enviro/destinations/mqtt.py you have
Having updated the firmware to a latest release (yes I know it's not final yet) on my Enviro Urban board I found that it stopped sending to my MQTT broker.
After some digging I found in enviro/destinations/mqtt.py you have
This fails as
reading
is not a json object.By changing it to the following
and adding
import ujson
to the top of the script fixes it so that the reading is sent correctly to the broker.Side note for anyone else trying to debug MQTT: Because you have the try block written with:
hid the error so the log just said it failed. Changing it to:
at least allowed the error to be visible and enabled me to find this.
The text was updated successfully, but these errors were encountered: