Skip to content
Snippets Groups Projects
Commit b91c2f85 authored by Adrien van den Bossche's avatar Adrien van den Bossche
Browse files

Update README.md with JSON example

parent e29ab457
Branches
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment