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
+2 -4
View File
@@ -146,7 +146,7 @@ void _begin() {
}
#endif
#if defined(MY_RADIO_FEATURE)
#if !defined(MY_GATEWAY_FEATURE)
presentNode();
#endif
@@ -325,9 +325,7 @@ bool _processInternalMessages() {
}
else if (type == I_PRESENTATION) {
// Re-send node presentation to controller
#if defined(MY_RADIO_FEATURE)
presentNode();
#endif
presentNode();
}
else if (type == I_HEARTBEAT) {
sendHeartbeat();