We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca43585 commit 62f522aCopy full SHA for 62f522a
libraries/MySensors/examples/SecureActuator/SecureActuator.ino
@@ -111,7 +111,8 @@ void loop()
111
*/
112
void receive(const MyMessage &message) {
113
// We only expect one type of message from controller. But we better check anyway.
114
- if (message.type==V_LOCK_STATUS && message.sensor<=NOF_LOCKS) {
+ // And acks are not accepted as control messages
115
+ if (message.type==V_LOCK_STATUS && message.sensor<=NOF_LOCKS && !mGetAck(message)) {
116
// Change relay state
117
digitalWrite(message.sensor-1+LOCK_1, message.getBool()?LOCK_LOCK:LOCK_UNLOCK);
118
// Store state in eeprom
0 commit comments