Send messages from sensor nodes using the GatewayTransport driver

Signed-off-by: Tomas Hozza <thozza@gmail.com>
This commit is contained in:
Tomas Hozza
2015-05-23 22:40:10 +02:00
parent 0c9b2b738d
commit cc47409f1a
+9 -1
View File
@@ -136,7 +136,15 @@ boolean MyGateway::process() {
}
}
}
return MySensor::process() || newMessage;
// new message from sensor node
if (MySensor::process()) {
MyMessage &msg = MySensor::getLastMessage();
newMessage = true;
transport.send(msg);
}
return newMessage;
}
#ifdef MY_INCLUSION_MODE_FEATURE