helium / cargo-elixir

Apache License 2.0
15 stars 6 forks source link

Add Parsing of Decoded Payload #17

Closed kent-williams closed 3 years ago

kent-williams commented 3 years ago

This PR adds the acceptance of valid tracking data found in the decoded field from Console JSON messages. The valid fields are latitude, longitude, and altitude, as well as optional battery, and speed. The valid fields can be located at any depth in the decoded field. If no decoded field is found or if the decoded field lacks the required fields then payload is decoded like before.