Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mqview: dies if message contains non-utf8 #13

Open
tve opened this issue Jun 1, 2020 · 0 comments
Open

mqview: dies if message contains non-utf8 #13

tve opened this issue Jun 1, 2020 · 0 comments

Comments

@tve
Copy link
Owner

tve commented Jun 1, 2020

  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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant