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 7d50130 commit 3a63ae6Copy full SHA for 3a63ae6
libraries/MySensors/examples/RelayWithButtonActuator/RelayWithButtonActuator.ino
@@ -70,7 +70,7 @@ void incomingMessage(const MyMessage &message) {
70
Serial.println("This is an ack from gateway");
71
}
72
73
- if (message.type==V_LIGHT) {
+ if (message.type == V_LIGHT && strlen(msg.getString()) != 0) {
74
// Change relay state
75
state = message.getBool();
76
digitalWrite(RELAY_PIN, state?RELAY_ON:RELAY_OFF);
0 commit comments