fix: change order of dest and src (optimization)

breaking changes
This commit is contained in:
Strix 2023-10-15 18:06:30 +02:00
parent 08baf134dd
commit 432c761112
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774

View file

@ -14,8 +14,8 @@ Packets are sent in big endian.
| offset | size | name | description | example |
|----------------------------------|---------------------------|---------------|------------------------------------------------------------------------------------|--------------|
| `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` |
| `0x05` | 4 bytes | `dest` | This describes who the packet is for a.k.a. destination device id | `0xAABBCCDD` |
| `0x01` | 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` |
| `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` |