From b91c2f85d742a899da114bd4a9d5a664e5849522 Mon Sep 17 00:00:00 2001 From: Adrien van den Bossche <vandenbo@univ-tlse2.fr> Date: Tue, 23 Jun 2020 16:46:26 +0200 Subject: [PATCH] Update README.md with JSON example --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index eb3cbd0..a2cdb00 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. -- GitLab