Skip to content

Can't decode byte 0xd0  #3

@farrelprmn

Description

@farrelprmn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions