thesolarnomad / lora-serialization

LoraWAN serialization/deserialization library for The Things Network
MIT License
164 stars 26 forks source link

Decoding on an Arduino #16

Closed BlinkyStitt closed 6 years ago

BlinkyStitt commented 6 years ago

The serialization code looks perfect my project since it easily supports lat/long, but I want to deserialize on another Arduino. What do you recommend? Do you think its worth writing deserialization code in C, or should I use another library (https://github.com/francc/tinypacks/blob/master/README-TinyPacks.md maybe)?

joscha commented 6 years ago

Hey,

Happy to accept a PR that adds decoding for the Arduino side - but maybe have a look at https://github.com/thesolarnomad/ttn-proto-utils/blob/master/example/arduino/src/main.cpp - it uses protobuf to do the same thing and takes quite a bit of work out of your hands with marginally more bytes (and more flexibility). I haven't used tinypack before, bit that looks interesting as well.

BlinkyStitt commented 6 years ago

I'm going to use nanopb/protobuf. Thanks.