Skip to content

Commit ed75b16

Browse files
committed
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.
1 parent c5a9c2e commit ed75b16

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libraries/MySensors/MySensor.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,9 @@ void MySensor::setupNode() {
268268
if (signer.requestSignatures()) {
269269
wait(2000);
270270
}
271+
#else
272+
// We do not support signing, make sure gateway knows this
273+
sendRoute(build(msg, nc.nodeId, GATEWAY_ADDRESS, NODE_SENSOR_ID, C_INTERNAL, I_REQUEST_SIGNING, false).set(false));
271274
#endif
272275

273276
// Send presentation for this radio node (attach

0 commit comments

Comments
 (0)