Skip to content
Permalink
Browse files

Move routing message part to the top of message to ease later refacto…

…ring of header/payload (encryption etc).
  • Loading branch information...
henrikekblad committed Aug 17, 2014
1 parent 8da32be commit c910bfdb9e54a9a41e991734b60c757968bd8210
Showing with 3 additions and 3 deletions.
  1. +3 −3 libraries/MySensors/MyMessage.h
@@ -170,16 +170,16 @@ 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
uint8_t command_ack_payload; // 3 bit - Command type
// 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.

0 comments on commit c910bfd

Please sign in to comment.
You can’t perform that action at this time.