diff --git a/README.md b/README.md index eb3cbd0fdeb060592312c375940f73cfc907ea24..a2cdb0062c5d02bc84e05ada62101a460c20525a 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,38 @@ Another localisation packet protocol to send/receive localisation data over netw ### Arduino +### Node-RED + +### JSON messages + +LocaPack messages are also available in JSON. Example of a Universal GNSS localisation packet: + +```json +{ + "header": { + "protocol_version": 1, + "device_id_size": 2, + "packet_type": 1, + "movement_id_presence_flag": false, + "timestamp_presence_flag": true + }, + "sequence_number": 2746, + "timestamp": 27850001, + "device_id": 237, + "payload": [192,49,131,47,66,150,8,165,63,154,153,18,67,164,112,157,63], + "universalGnssPacket": { + "header": { + "altitude_presence_flag": true, + "dop_presence_flag": true + }, + "latitude": 43.878116607666016, + "longitude": 1.2893245220184326, + "altitude": 146.60000610351562, + "dop": 1.2300000190734863 + } +} +``` + ## License Locapack is distributed under the GPLv3 license. Please refer to the `LICENSE` file.