[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
+5
-2
@@ -112,7 +112,10 @@ build_flags =
|
||||
'-DsimplePublishing=true'
|
||||
'-DWM_PWD_FROM_MAC=true'
|
||||
'-DUSE_MAC_AS_GATEWAY_NAME=true'
|
||||
|
||||
'-DZsensorC37_YL83_HMRD="HMRD"'
|
||||
'-DDEEP_SLEEP_IN_US=120000000' ; Deep sleep for a period of time to conserve battery
|
||||
'-DESP32_EXT0_WAKE_PIN=GPIO_NUM_14' ;Should a water leak be detected immediatly wake the ESP32 and report the problem
|
||||
'-DESP32_EXT0_WAKE_PIN_STATE=0' ;Should a water leak be detected immediatly wake the ESP32 and report the problem, sensor state to look for wakeup
|
||||
[env:esp32dev-rf]
|
||||
platform = ${com.esp32_platform}
|
||||
board = esp32dev
|
||||
@@ -1070,7 +1073,7 @@ build_flags =
|
||||
;'-DZgatewayWeatherStation="WeatherStation"'
|
||||
'-DsimplePublishing=true'
|
||||
'-DGateway_Name="OMG_ESP8266_ALL"'
|
||||
'-DESP8266_DEEP_SLEEP_IN_US=120000000'
|
||||
'-DDEEP_SLEEP_IN_US=120000000'
|
||||
board_build.flash_mode = dout
|
||||
|
||||
[env:nodemcuv2-fastled-test]
|
||||
|
||||
Reference in new issue
Block a user