From 30402d41d3919d01a97383b12b7015291a96cc69 Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Sat, 18 Apr 2020 12:30:58 +0200 Subject: [PATCH] update influxdb domain name, tweak battery level thresholds --- main/esp32-sensornode_main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main/esp32-sensornode_main.cpp b/main/esp32-sensornode_main.cpp index fbbe0b8..9a79a65 100644 --- a/main/esp32-sensornode_main.cpp +++ b/main/esp32-sensornode_main.cpp @@ -31,11 +31,11 @@ #define BOARD 4 /* IMPORTANT: select one of the BOARD_* types */ #endif -#define DB_HOSTNAME "ursaminor.fra80" +#define DB_HOSTNAME "influx-iot.fra80" #define DB_PASSWD "c2Vuc29yczpTZW5zb3JzLXcuaW5mbHV4QGhvbWU" // BasicAuth String #if BOARD == BOARD_ESP32 -#define BATT_FULL 3800 // 4.3V Battery +#define BATT_FULL 3700 // 4.2V Battery #define BATT_CUTOFF 2500 // 2.8V Battery #else #error "unsupported board chosen" @@ -68,9 +68,9 @@ String serviceUri = "/write?db=test"; #endif /* GLOBAL VARIABLES */ -const uint16_t wlanConnectCheckInterval = 250; // milli seconds: poll wifi.state after wifi.begin() -const uint16_t wlanConnectTimeout = 15000; // milli seconds -RTC_DATA_ATTR uint8_t wlanConnectFailCnt = 0; +const uint16_t wlanConnectCheckInterval = 250; // milli seconds: poll wifi.state after wifi.begin() +const uint16_t wlanConnectTimeout = 15000; // milli seconds +RTC_DATA_ATTR uint8_t wlanConnectFailCnt = 0; Si7021 si7021 = Si7021(); float temp = 0.0;