From ed75b16ea2d972b544e9719304d15f6ac1d18851 Mon Sep 17 00:00:00 2001 From: Patrick Fallberg Date: Sun, 10 Jan 2016 13:59:56 +0100 Subject: [PATCH] Make sure nodes not supporting signing informs GW A node that does not support signing, still needs to inform the gateway about this to make sure the gateway carries a valid signing requirement table when a node Id that was requiering signing stops doing this. This fixes #286. --- libraries/MySensors/MySensor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/MySensors/MySensor.cpp b/libraries/MySensors/MySensor.cpp index 8409e5d..e101dd1 100644 --- a/libraries/MySensors/MySensor.cpp +++ b/libraries/MySensors/MySensor.cpp @@ -268,6 +268,9 @@ void MySensor::setupNode() { if (signer.requestSignatures()) { wait(2000); } +#else + // We do not support signing, make sure gateway knows this + sendRoute(build(msg, nc.nodeId, GATEWAY_ADDRESS, NODE_SENSOR_ID, C_INTERNAL, I_REQUEST_SIGNING, false).set(false)); #endif // Send presentation for this radio node (attach