adafruit / Adafruit_CircuitPython_RFM9x

CircuitPython module for the RFM95/6/7/8 LoRa wireless 433/915mhz packet radios.
MIT License
68 stars 45 forks source link

Receive packets in the form of char string #54

Closed TinManAkshay closed 3 years ago

TinManAkshay commented 3 years ago

Hi all,

So far rfm9x.receive() function can receive the packets in the form of bytes right. Can the same function receive the packets in the form of char string as well?

Thanks, Akshay

brentru commented 3 years ago

It can not receive packets as char strings but you can convert them. After you called rfm9x.receive(), you would need to convert the received payload from raw bytes to character string via something like payload_bytes.decode()