Internal messages send from gateway to controller should use sensor id
255
This commit is contained in:
@@ -248,7 +248,7 @@ static inline MyMessage& build(MyMessage &msg, uint8_t sender, uint8_t destinati
|
|||||||
static inline MyMessage& buildGw(MyMessage &msg, uint8_t type) {
|
static inline MyMessage& buildGw(MyMessage &msg, uint8_t type) {
|
||||||
msg.sender = GATEWAY_ADDRESS;
|
msg.sender = GATEWAY_ADDRESS;
|
||||||
msg.destination = GATEWAY_ADDRESS;
|
msg.destination = GATEWAY_ADDRESS;
|
||||||
msg.sensor = 0;
|
msg.sensor = 255;
|
||||||
msg.type = type;
|
msg.type = type;
|
||||||
mSetCommand(msg, C_INTERNAL);
|
mSetCommand(msg, C_INTERNAL);
|
||||||
mSetRequestAck(msg, false);
|
mSetRequestAck(msg, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user