Skip to content

Commit c910bfd

Browse files
committed
Move routing message part to the top of message to ease later refactoring of header/payload (encryption etc).
1 parent 8da32be commit c910bfd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/MySensors/MyMessage.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,16 @@ struct
170170
{
171171

172172
#endif
173+
uint8_t last; // 8 bit - Id of last node this message passed
174+
uint8_t sender; // 8 bit - Id of sender node (origin)
175+
uint8_t destination; // 8 bit - Id of destination node
173176

174177
uint8_t version_length; // 3 bit - Protocol version
175178
// 5 bit - Length of payload
176179
uint8_t command_ack_payload; // 3 bit - Command type
177180
// 1 bit - Request an ack - Indicator that receiver should send an ack back.
178181
// 1 bit - Is ack messsage - Indicator that this is the actual ack message.
179182
// 3 bit - Payload data type
180-
uint8_t sender; // 8 bit - Id of sender node
181-
uint8_t last; // 8 bit - Id of last node this message passed
182-
uint8_t destination; // 8 bit - Id of destination node
183183
uint8_t type; // 8 bit - Type varies depending on command
184184
uint8_t sensor; // 8 bit - Id of sensor that this message concerns.
185185

0 commit comments

Comments
 (0)