LoRaRF-Python
LoRaRF-Python copied to clipboard
Transmission of bytes
Hello,
I have been reviewing the library/module code and the examples and I have some doubts. I'm working on a project that I use bytes instead of strings in order to transmit data. Based on the function def write(self, data, length: int = 0) , the function only accepts lists and tuples. Are there any other function in the library/module that allow to send bytes? If not, how do you think this would be possible to use with this library?
Thank you!
Hello vick,
For transmitting and receiving bytes data type you can use put and get method respectively. Those methods accept bytes and bytearray variable as input.
You can see how those methods implementation in the LoRa_simple_node and LoRa_simple_gateway examples.