From 84482d777febf48980e6913f60502a0759aa8c00 Mon Sep 17 00:00:00 2001 From: Giampaolo Mancini Date: Mon, 18 Dec 2017 14:57:20 +0100 Subject: [PATCH] Pack header too. --- src/mqttsn.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mqttsn.h b/src/mqttsn.h index fd59fdb..d3c21b3 100644 --- a/src/mqttsn.h +++ b/src/mqttsn.h @@ -93,7 +93,7 @@ enum message_type { WILLMSGRESP }; -struct message_header { +struct __attribute__ ((packed)) message_header { uint8_t length; uint8_t type; };