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 a4683fb commit c958e84Copy full SHA for c958e84
examples/DhtTemperatureAndHumiditySensor/DhtTemperatureAndHumiditySensor.ino
@@ -80,6 +80,8 @@ void presentation()
80
81
// Register all sensors to gw (they will be created as child devices)
82
present(CHILD_ID_HUM, S_HUM);
83
+ // Delay between each present process.
84
+ wait(500);
85
present(CHILD_ID_TEMP, S_TEMP);
86
87
metric = getConfig().isMetric;
@@ -147,6 +149,8 @@ void loop()
147
149
nNoUpdatesHum++;
148
150
}
151
152
+ // Delay before going to sleep so we can potentially respond to "present" requests from the gateway.
153
+ wait(1000);
154
// Sleep for a while to save energy
155
sleep(UPDATE_INTERVAL);
156
0 commit comments