matthijskooijman / arduino-lmic

:warning: This library is deprecated, see the README for alternatives.
704 stars 651 forks source link

Sending data in uint32 instead of uint8 #310

Closed magicBanana3 closed 2 years ago

magicBanana3 commented 2 years ago

Hello, I'm new in the world of creating of LoRaWAN-Nodes. I'm able to send data via LoRaWAN with this library, but the format of 8 bits is not enough for my use case. Does anyone of you know how to send data in the 32 bit format?

I'm very thankful for your comments and your help.

Best wishes

matthijskooijman commented 2 years ago

This library is no longer actively supported, so I'm closing this issue.

Like any radio or communication library, LMIC just sends a sequence of bytes, and it is up to you to encode your data into such a byte sequence. There should be tons of examples on the internet on how to do this, search terms might be "packetization", "packing into bytes", "encoding into byte string", that kind of thing.

Good luck!