diff --git a/doc/proto.md b/doc/proto.md index 487b154..05667d3 100644 --- a/doc/proto.md +++ b/doc/proto.md @@ -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` |