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

Update README.md

parent c434dd50
Branches
No related tags found
No related merge requests found
...@@ -17,9 +17,9 @@ Locapack is distributed under the GPLv3 license. Please refer to the `LICENSE` f ...@@ -17,9 +17,9 @@ Locapack is distributed under the GPLv3 license. Please refer to the `LICENSE` f
### Packet general structure ### Packet general structure
| 2B | 2B | 1B (opt) | variable | variable | | 2B | 2B | 1B (opt) | variable | 1B | variable |
|:--------:|:-----------------:|:-------------:|:----------------:|:-----------------------------:| |:--------:|:-----------------:|:-------------:|:----------------:|:-------------:|:-----------------------------:|
| `header` | `sequence_number` | `movement_id` | `source_address` | `localisation_packet_payload` | | `header` | `sequence_number` | `movement_id` | `source_address` | `payload_len` | `localisation_packet_payload` |
The `sequence_number` field is mandatory. The `sequence_number` field is mandatory.
...@@ -27,6 +27,8 @@ The `movement_id` field is optional and its presence is announced in the header. ...@@ -27,6 +27,8 @@ The `movement_id` field is optional and its presence is announced in the header.
The `source_address` field length is annouced in the header. A length of 0 means that the field is not present in the packet. The `source_address` field length is annouced in the header. A length of 0 means that the field is not present in the packet.
The `payload_len` field contains the length of the payload.
The `localisation_packet_payload` length depends on the `localisation_packet_type` annouced in the header. The `localisation_packet_payload` length depends on the `localisation_packet_type` annouced in the header.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment