RAKWireless / WisBlock

Quickstart, tutorials and examples for the RAKwireless WisBlock product line.
https://www.rakwireless.com
MIT License
156 stars 117 forks source link

Buffer Modulation #61

Closed Devansh-Shah-5400 closed 1 year ago

Devansh-Shah-5400 commented 1 year ago

Hey RAK, I was wondering that can I send JSON data or some other type of data to gateway via LoRaWAN OTAA, where I can go:

'temperature': 23

or

buffer[i++] = "Temp"; //Which is not possible as it is an unsigned int array buffer[i++] = 23;

or send it in buffer but I don't want to hardcode it, Thanks for the help!

beegee-tokyo commented 1 year ago

Sending data in that way is a waste of payload size. Better to use Cayenne LPP format. There is a library and some examples from ElectronicCats. Most LoRaWAN server have integrated decoders for the Cayenne LPP format and create the JSON string from the binary payload.

I propose as well to ask such questions in our RAK Forum, there are many people that can help.