micropython/lora , modem.poll_recv() in a callback problem #13341
Unanswered
davefes
asked this question in
Libraries & Drivers
Replies: 1 comment 2 replies
-
Perharps you have to 'reset' the lora buffer before reading ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have used
start_recv
andpoll_recv
in some low-level API code to successfully get the messages send from a remote.When I tried using an
irq_my_rx()
callback I determined that, at leastpoll_recv
would get me the message. However, doing adecode
on the data throws aunicode error
.I also tried:
in
my_rx_ irq()
givesInvalid length in payload header
Writing a Python script to decode the message I discovered that there is a start byte in my message. When I remove it the message decodes.
What is the correct procedure to recover the received data in a callback?
Beta Was this translation helpful? Give feedback.
All reactions