From c910bfdb9e54a9a41e991734b60c757968bd8210 Mon Sep 17 00:00:00 2001 From: Henrik Ekblad Date: Sun, 17 Aug 2014 13:57:51 +0200 Subject: [PATCH] Move routing message part to the top of message to ease later refactoring of header/payload (encryption etc). --- libraries/MySensors/MyMessage.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/MySensors/MyMessage.h b/libraries/MySensors/MyMessage.h index aa3f56c..c7893bf 100644 --- a/libraries/MySensors/MyMessage.h +++ b/libraries/MySensors/MyMessage.h @@ -170,6 +170,9 @@ struct { #endif + uint8_t last; // 8 bit - Id of last node this message passed + uint8_t sender; // 8 bit - Id of sender node (origin) + uint8_t destination; // 8 bit - Id of destination node uint8_t version_length; // 3 bit - Protocol version // 5 bit - Length of payload @@ -177,9 +180,6 @@ struct // 1 bit - Request an ack - Indicator that receiver should send an ack back. // 1 bit - Is ack messsage - Indicator that this is the actual ack message. // 3 bit - Payload data type - uint8_t sender; // 8 bit - Id of sender node - uint8_t last; // 8 bit - Id of last node this message passed - uint8_t destination; // 8 bit - Id of destination node uint8_t type; // 8 bit - Type varies depending on command uint8_t sensor; // 8 bit - Id of sensor that this message concerns.