mqview: dies if message contains non-utf8
Opened this issue · 0 comments
tve commented
File "/home/src/esp32/mpy-mqtt/mqboard/view.py", line 24, in on_log
m = msg.payload.decode("utf-8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte
It's sometimes convenient to use something like --topic board/location/#
to see whether a seemingly dead board sends anything and the mqb messages sent by the watchdog start with 0x80 causing the above error.