From e8f7cb16a2b90be3090d19d44739f1d4770ad59d Mon Sep 17 00:00:00 2001 From: Marcelo Aquino Date: Tue, 3 Feb 2015 13:33:28 -0200 Subject: [PATCH] Fetch id through repeaters --- libraries/MySensors/MySensor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/MySensors/MySensor.cpp b/libraries/MySensors/MySensor.cpp index da0f60e..6518520 100755 --- a/libraries/MySensors/MySensor.cpp +++ b/libraries/MySensors/MySensor.cpp @@ -399,6 +399,10 @@ boolean MySensor::process() { // // lookup route in table and send message there sendWrite(route, msg); + } else if (sender == GATEWAY_ADDRESS && destination == BROADCAST_ADDRESS) { + // A net gateway reply to a message previously sent by us from a 255 node + // We should broadcast this back to the node + sendWrite(destination, msg, true); } else { // A message comes from a child node and we have no // route for it.