paulmandal / atak-forwarder

Forwards packets to/from ATAK over an off-grid communication layer
MIT License
390 stars 42 forks source link

Unpacking PLI data in Meshtastic Firmware #184

Open tdparker127-hue opened 1 year ago

tdparker127-hue commented 1 year ago

I am trying to unpack the PLI data for calculations to be done on a custom device running the meshtastic firmware. I can get the packet payload to print, but it is in gibberish without decoding the bytes correctly? All the built in protobuf decoding won't work from what I have tried due to the custom message description. I unfortunately am unfamiliar with protobuf and message encoding in general. Would it work to add the CotShrink Proto to the firmware (as a field description in Meshtastic firmware mesh.pb.h) and use that within the prebuilt pb_decode_from_bytes()? Thanks!