Skip to content
This repository has been archived by the owner on Feb 21, 2025. It is now read-only.

Commit

Permalink
Pack header too.
Browse files Browse the repository at this point in the history
  • Loading branch information
manchoz committed Dec 18, 2017
1 parent b2f5d88 commit 84482d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mqttsn.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ enum message_type {
WILLMSGRESP
};

struct message_header {
struct __attribute__ ((packed)) message_header {
uint8_t length;
uint8_t type;
};
Expand Down

0 comments on commit 84482d7

Please sign in to comment.