From 432c761112726859f6c7ec94c77d6d12225e55cd Mon Sep 17 00:00:00 2001 From: Raine Date: Sun, 15 Oct 2023 18:06:30 +0200 Subject: [PATCH] fix: change order of dest and src (optimization) breaking changes --- doc/proto.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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` |