Fixed influxdb debug output (partly)

This commit is contained in:
Kai Lauterbach 2024-02-03 18:14:09 +01:00
parent e4e35fcd07
commit 0299cd72ab
2 changed files with 7 additions and 3 deletions

View file

@ -3,7 +3,7 @@
// config general setting and behavior of the weatherstation // config general setting and behavior of the weatherstation
#define VERSION_STRING "1.1.1" #define VERSION_STRING "1.1.2"
#define WIFI_AUTOCONNECT_TIMEOUT_S 60 #define WIFI_AUTOCONNECT_TIMEOUT_S 60
#define WIFI_CONFIG_PORTAL_TIMEOUT_S 120 #define WIFI_CONFIG_PORTAL_TIMEOUT_S 120

View file

@ -1,6 +1,8 @@
#include "config_user.h" #include "config_user.h"
#ifdef INFLUXDB_FEATURE
//*************************************************************************// //*************************************************************************//
#if INFLUXDB_VERSION == 1 #if INFLUXDB_VERSION == 1
@ -107,12 +109,12 @@ void influxdb_begin() {
if (client.validateConnection()) { if (client.validateConnection()) {
// success // success
#ifdef DEBUG #ifdef DEBUG
Serial.print("InfluxDB connect success\n"); debug("InfluxDB connect success\n");
#endif #endif
} else { } else {
// fail // fail
#ifdef DEBUG #ifdef DEBUG
Serial.print("InfluxDB connect failed\n"); debug("InfluxDB connect failed\n");
#endif #endif
} }
@ -215,4 +217,6 @@ void _writePoint()
#endif // influxdb version 2 check #endif // influxdb version 2 check
#endif // INFLUXDB_FEATURE
//*************************************************************************// //*************************************************************************//