From 6a76a9262dbb9f6393b6b0994d7d6c0989bdad0b Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Wed, 3 Oct 2018 21:28:26 +0200 Subject: [PATCH] [CODE] ESP32: set correct battery range --- main/esp32-sensornode_main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/esp32-sensornode_main.cpp b/main/esp32-sensornode_main.cpp index c08f102..d43b36c 100644 --- a/main/esp32-sensornode_main.cpp +++ b/main/esp32-sensornode_main.cpp @@ -35,13 +35,13 @@ #define DB_PASSWD "c2Vuc29yczpTZW5zb3JzLXcuaW5mbHV4QGhvbWU" // BasicAuth String #if BOARD == BOARD_ESP32 -#define BATT_FULL 3600 // 3.6V VCC (4.3V Battery) TODO: get actual value -#define BATT_CUTOFF 200 // 2.3V VCC (3.0V Battery) TODO: get actual value +#define BATT_FULL 3800 // 4.3V Battery +#define BATT_CUTOFF 2500 // 2.8V Battery #else #error "unsupported board chosen" #endif -String loggerId = "esp-"; // prefix for the last 3 octets of the MAC address +String loggerId = "esp32-"; // prefix for the last 3 octets of the MAC address /* SETTINGS */ float tempOffset = +0.0;