openenergymonitor / emonhub

Python service linking and decoding input to MQTT & Emoncms
90 stars 83 forks source link

Decode MQTT payload #174

Closed bwduncan closed 2 years ago

bwduncan commented 2 years ago

Fixes TypeError: a bytes-like object is required, not 'str'

Signed-off-by: Bruce Duncan bwduncan@gmail.com

https://community.openenergymonitor.org/t/mosquitto-pub-crashing-mqtt-on-every-message/20269/29