Skip to content

Commit f181d10

Browse files
authored
Added weatherSensor.sleep() to all examples with sleep mode (#218)
1 parent c4444ed commit f181d10

File tree

4 files changed

+27
-2
lines changed

4 files changed

+27
-2
lines changed

examples/BresserWeatherSensorDomoticz/BresserWeatherSensorDomoticz.ino

+6
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,12 @@ void loop()
608608
#ifdef LED_EN
609609
pinMode(LED_GPIO, INPUT);
610610
#endif
611+
// Note:
612+
// Further reduction of sleep current might be possible by
613+
// controlling the GPIO pins (including SPI CS) appropriately.
614+
// This depends on the actual board/radio chip used.
615+
// See
616+
// https://github.com/jgromes/RadioLib/discussions/1375#discussioncomment-11763846
611617
weatherSensor.sleep();
612618
ESP.deepSleep(SLEEP_INTERVAL * 1000);
613619
}

examples/BresserWeatherSensorMQTT/BresserWeatherSensorMQTT.ino

+7-1
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,13 @@ void loop()
943943
#ifdef LED_EN
944944
pinMode(LED_GPIO, INPUT);
945945
#endif
946-
weatherSensor.sleep();
946+
// Note:
947+
// Further reduction of sleep current might be possible by
948+
// controlling the GPIO pins (including SPI CS) appropriately.
949+
// This depends on the actual board/radio chip used.
950+
// See
951+
// https://github.com/jgromes/RadioLib/discussions/1375#discussioncomment-11763846
952+
weatherSensor.sleep();
947953
ESP.deepSleep(SLEEP_INTERVAL * 1000);
948954
}
949955
} // loop()

examples/BresserWeatherSensorMQTTCustom/BresserWeatherSensorMQTTCustom.ino

+7-1
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,13 @@ void loop()
943943
#ifdef LED_EN
944944
pinMode(LED_GPIO, INPUT);
945945
#endif
946-
weatherSensor.sleep();
946+
// Note:
947+
// Further reduction of sleep current might be possible by
948+
// controlling the GPIO pins (including SPI CS) appropriately.
949+
// This depends on the actual board/radio chip used.
950+
// See
951+
// https://github.com/jgromes/RadioLib/discussions/1375#discussioncomment-11763846
952+
weatherSensor.sleep();
947953
ESP.deepSleep(SLEEP_INTERVAL * 1000);
948954
}
949955
} // loop()

examples/BresserWeatherSensorMQTTWifiMgr/BresserWeatherSensorMQTTWifiMgr.ino

+7
Original file line numberDiff line numberDiff line change
@@ -1158,6 +1158,13 @@ void loop()
11581158
#ifdef LED_EN
11591159
pinMode(LED_GPIO, INPUT);
11601160
#endif
1161+
// Note:
1162+
// Further reduction of sleep current might be possible by
1163+
// controlling the GPIO pins (including SPI CS) appropriately.
1164+
// This depends on the actual board/radio chip used.
1165+
// See
1166+
// https://github.com/jgromes/RadioLib/discussions/1375#discussioncomment-11763846
1167+
weatherSensor.sleep();
11611168
ESP.deepSleep(SLEEP_INTERVAL * 1000);
11621169
}
11631170
} // loop()

0 commit comments

Comments
 (0)