From bbfbcc6c936b16568d96619f02f8bb081c190b2a Mon Sep 17 00:00:00 2001 From: sotech117 Date: Thu, 14 Sep 2023 19:02:36 -0400 Subject: finish warmup, hopefully --- protocol.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 protocol.h (limited to 'protocol.h') diff --git a/protocol.h b/protocol.h new file mode 100644 index 0000000..0cdc998 --- /dev/null +++ b/protocol.h @@ -0,0 +1,16 @@ +#include // Provides uint8_t, int8_t, etc. + +struct snowcast_message { + uint8_t type; + uint16_t number; +} __attribute__((packed)); + +struct Welcome { + uint8_t replyType; + uint16_t numStations; +} __attribute__((packed)); + +struct Hello { + uint8_t commandType; + uint16_t udpPort; +} __attribute__((packed)); -- cgit v1.2.3-70-g09d2