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

Can't decode byte 0xd0 #3

Open
OrangeCat2528 opened this issue Jun 18, 2024 · 0 comments
Open

Can't decode byte 0xd0 #3

OrangeCat2528 opened this issue Jun 18, 2024 · 0 comments

Comments

@OrangeCat2528
Copy link

Hi, I'm using this code for my Lora experiment, and I'm wondering for this error always showing at me:

0|Receiver  | Traceback (most recent call last):
0|Receiver  |   File "/home/lora/receiver/app.py", line 83, in <module>
0|Receiver  |     code, value, rssi = lora.receive_message(rssi=True)
0|Receiver  |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0|Receiver  |   File "/home/lora/.local/lib/python3.11/site-packages/lora_e22.py", line 669, in receive_message
0|Receiver  |     data = data.decode('utf-8')
0|Receiver  |            ^^^^^^^^^^^^^^^^^^^^
0|Receiver  | UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 2: invalid continuation byte

I still don't have a solution for this error instead of re-edited the lora_e22 file to fix the utf-8 in the receive_message section. Thank you.

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