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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user