DeepSleep 900
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
; Library options: dependencies, extra library storages
|
; Library options: dependencies, extra library storages
|
||||||
; Advanced options: extra scripting
|
; Advanced options: extra scripting
|
||||||
;
|
;
|
||||||
; Temperatur messen und an MQTT senden
|
; Temperatur messen und an MQTT senden, danach deepSleep
|
||||||
;
|
;
|
||||||
|
|
||||||
[env:dfrobot_firebeetle2_esp32e]
|
[env:dfrobot_firebeetle2_esp32e]
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
#include "LocalNetworkManager.h"
|
#include "LocalNetworkManager.h"
|
||||||
|
|
||||||
#define uS_TO_S_FACTOR 1000000ULL /* Conversion factor for micro seconds to seconds */
|
#define uS_TO_S_FACTOR 1000000ULL /* Conversion factor for micro seconds to seconds */
|
||||||
#define SLEEP 300 // Sleep time in seconds
|
#define SLEEP 900 // Sleep time in seconds
|
||||||
|
|
||||||
constexpr unsigned int SENSOR_PIN{ D3 };
|
constexpr unsigned int SENSOR_PIN{ D3 };
|
||||||
AM2302::AM2302_Sensor am2302{ SENSOR_PIN };
|
AM2302::AM2302_Sensor am2302{ SENSOR_PIN };
|
||||||
|
|||||||
Reference in New Issue
Block a user