Present locally attached sensors and node when missing radio (#532)

* Present locally attached sensors and node when missing radio

Fix #524

* Combining gateway and node presentation.
This commit is contained in:
Henrik Ekblad
2016-08-01 23:59:31 +02:00
committed by Olivier
parent e475be2980
commit 37119b2a3a
7 changed files with 15 additions and 10 deletions
+3 -4
View File
@@ -301,8 +301,8 @@ bool gatewayTransportAvailable()
inputString[i].idx = 0;
debug(PSTR("Client %d connected\n"), i);
gatewayTransportSend(buildGw(_msg, I_GATEWAY_READY).set("Gateway startup complete."));
if (presentation)
presentation();
// Send presentation of locally attached sensors (and node if applicable)
presentNode();
}
}
bool connected = clients[i].connected();
@@ -335,8 +335,7 @@ bool gatewayTransportAvailable()
_w5100_spi_en(false);
gatewayTransportSend(buildGw(_msg, I_GATEWAY_READY).set("Gateway startup complete."));
_w5100_spi_en(true);
if (presentation)
presentation();
presentNode();
}
}
if (client) {