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

Transmission of bytes #8

Open
victorfmin66 opened this issue Jan 8, 2023 · 1 comment
Open

Transmission of bytes #8

victorfmin66 opened this issue Jan 8, 2023 · 1 comment

Comments

@victorfmin66
Copy link

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!

@chandrawi
Copy link
Owner

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.

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

2 participants