Merge branch 'development' of https://github.com/mysensors/Arduino into development

This commit is contained in:
Henrik Ekblad
2014-08-16 00:00:33 +02:00
5 changed files with 591 additions and 2 deletions
@@ -70,7 +70,7 @@ void incomingMessage(const MyMessage &message) {
Serial.println("This is an ack from gateway");
}
if (message.type==V_LIGHT) {
if (message.type == V_LIGHT && strlen(msg.getString()) != 0) {
// Change relay state
state = message.getBool();
digitalWrite(RELAY_PIN, state?RELAY_ON:RELAY_OFF);