update influxdb domain name, tweak battery level thresholds
This commit is contained in:
parent
e80fd40194
commit
30402d41d3
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue