We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed75b16 commit ae7a889Copy full SHA for ae7a889
libraries/MySensors/examples/SecureActuator/SecureActuator.ino
@@ -102,7 +102,8 @@ void loop()
102
103
void incomingMessage(const MyMessage &message) {
104
// We only expect one type of message from controller. But we better check anyway.
105
- if (message.type==V_LOCK_STATUS && message.sensor<=NOF_LOCKS) {
+ // And acks are not accepted as control messages
106
+ if (message.type==V_LOCK_STATUS && message.sensor<=NOF_LOCKS && !mGetAck(message)) {
107
// Change relay state
108
digitalWrite(message.sensor-1+LOCK_1, message.getBool()?LOCK_LOCK:LOCK_UNLOCK);
109
// Store state in eeprom
0 commit comments