fix: change order of dest and src (optimization)
breaking changes
This commit is contained in:
parent
08baf134dd
commit
432c761112
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,8 @@ Packets are sent in big endian.
|
||||||
| offset | size | name | description | example |
|
| offset | size | name | description | example |
|
||||||
|----------------------------------|---------------------------|---------------|------------------------------------------------------------------------------------|--------------|
|
|----------------------------------|---------------------------|---------------|------------------------------------------------------------------------------------|--------------|
|
||||||
| `0x00` | 1 byte | `version` | This describes the version of the packet | `0x01` |
|
| `0x00` | 1 byte | `version` | This describes the version of the packet | `0x01` |
|
||||||
| `0x01` | 4 bytes | `src` | This describes who sent the packet a.k.a. source device id | `0xAABBCCDD` |
|
| `0x01` | 4 bytes | `dest` | This describes who the packet is for a.k.a. destination device id | `0xAABBCCDD` |
|
||||||
| `0x05` | 4 bytes | `dest` | This describes who the packet is for a.k.a. destination device id | `0xAABBCCDD` |
|
| `0x05` | 4 bytes | `src` | This describes who sent the packet a.k.a. source device id | `0xAABBCCDD` |
|
||||||
| `0x09` | 4 bytes | `packet_id` | This is the unique identifier of the packet | `0xFAB1B39D` |
|
| `0x09` | 4 bytes | `packet_id` | This is the unique identifier of the packet | `0xFAB1B39D` |
|
||||||
| `0x0D` | 4 bytes | `reply_to` | This describes what this packet is replying to, if initial message, value is `0x0` | `0x00000000` |
|
| `0x0D` | 4 bytes | `reply_to` | This describes what this packet is replying to, if initial message, value is `0x0` | `0x00000000` |
|
||||||
| `0x11` | 1 byte | `command` | This describes what kind of command is sent | `0x00` |
|
| `0x11` | 1 byte | `command` | This describes what kind of command is sent | `0x00` |
|
||||||
|
|
Loading…
Reference in a new issue