[HM-RD] Added leak/water detection sensor with ESP32 deep sleep / sensor wake (#1615)
Added leak/water detection sensor with ESP32 deep sleep / sensor wake
This commit is contained in:
1 parent
e3e700449b
commit
abeef870c7
9 files changed
+252
-21
No files matched your search
+11
-1
@@ -298,12 +298,22 @@ static_assert(MQTT_SECURE_SELF_SIGNED_INDEX_DEFAULT < (sizeof(certs_array) / siz
|
||||
* Deep-sleep for the ESP8266.
|
||||
* Set the wake pin.
|
||||
*/
|
||||
#ifdef ESP8266_DEEP_SLEEP_IN_US
|
||||
#if defined(DEEP_SLEEP_IN_US) && defined(ESP8266)
|
||||
# ifndef ESP8266_DEEP_SLEEP_WAKE_PIN
|
||||
# define ESP8266_DEEP_SLEEP_WAKE_PIN D0
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Ext wake for Deep-sleep for the ESP32.
|
||||
* Set the wake pin state.
|
||||
*/
|
||||
#ifdef ESP32_EXT0_WAKE_PIN
|
||||
# ifndef ESP32_EXT0_WAKE_PIN_STATE
|
||||
# define ESP32_EXT0_WAKE_PIN_STATE 1
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/*------------------DEEP SLEEP parameters ------------------*/
|
||||
//DEFAULT_LOW_POWER_MODE -1 to normal mode, low power mode can't be used on this build
|
||||
//DEFAULT_LOW_POWER_MODE 0 to normal mode (no power consumption optimisations)
|
||||
|
||||
Reference in new issue
Block a user