feature/InfluxDB-Connection-Update #1

Merged
klaute merged 39 commits from feature/InfluxDB-Connection-Update into master 2022-05-23 17:36:59 +02:00
Showing only changes of commit 7ef9dd4e53 - Show all commits

View file

@ -223,6 +223,7 @@ void _loop() {
#ifdef HTTP_CALL_ON_WINDSPEED_EXCEED
if (HTTP_CALL_ON_WINDSPEED_INTERVAL_S * 1000 / DELAY_LOOP_MS <= update_windspeed_exceed_cnt)
{
debug("Reading wind sensor because of exceed call functionality");
if (sensors[SENSOR_WINDSPEED])
{
// read from windspeed sensor
@ -237,6 +238,7 @@ void _loop() {
http.end();
// Send HTTP GET request
int httpResponseCode = http.GET();
debug("Called windspeed exceed callout");
}
} else {
currentSensorData[SENSOR_WINDSPEED] = nan("no value");