Compare commits

...

2 commits

Author SHA1 Message Date
Kai Lauterbach dea274117c Removed old unused code 2022-05-16 10:12:36 +02:00
Kai Lauterbach fdc9ddbf31 Removed unused code 2022-05-16 08:46:05 +02:00
2 changed files with 6 additions and 11 deletions

View file

@ -128,12 +128,6 @@ void setup()
#ifndef BATTERY_POWERED
setupWebUpdater(DEVICE_NAME, WiFi.localIP().toString());
#endif
#endif
#ifdef HOMEBRIDGE_WEBSTAT
#ifndef BATTERY_POWERED
hb_webstat_server_setup();
#endif
#endif
//It's magic! leave in
@ -143,7 +137,8 @@ void setup()
// if millis() reached interval (1h) restart ESP
if (millis() >= RESET_ESP_TIME_INTERVAL_MS)
{
// TODO test
debug("Resetting firmware intentionally");
// Push reset button after flashing once or do a manual power cycle to get the functionality working.
ESP.restart();
}
#endif
@ -250,10 +245,6 @@ void _loop() {
setSensorData(currentSensorData);
#endif
#ifdef HOMEBRIDGE_WEBSTAT
hb_webstat_loop(currentSensorData);
#endif
}
void logToSerial(float sensorValues[]) {

4
firmware/influxdb.ino Executable file → Normal file
View file

@ -2,6 +2,8 @@
#include "config_user.h"
#if INFLUXDB_VERSION == 2
// Data point
Point sensor(DEVICE_NAME);
@ -103,3 +105,5 @@ void _writePoint() {
}
}
#endif // influxdb version 2 check