Browse Source

fix for simpleinflux

Thomas B 4 months ago
parent
commit
2f0d2e94ba
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      src/SimpleInflux.cpp
  2. 2
    2
      src/influx.cpp

+ 1
- 1
src/SimpleInflux.cpp View File

17
 #include "DebugLog.h"
17
 #include "DebugLog.h"
18
 #include "SimpleInflux.h"
18
 #include "SimpleInflux.h"
19
 
19
 
20
-#ifdef DENABLE_SIMPLE_INFLUX
20
+#ifdef ENABLE_SIMPLE_INFLUX
21
 
21
 
22
 #if defined(ARDUINO_ARCH_AVR)
22
 #if defined(ARDUINO_ARCH_AVR)
23
 #include <WiFiLink.h>
23
 #include <WiFiLink.h>

+ 2
- 2
src/influx.cpp View File

114
 #endif
114
 #endif
115
 
115
 
116
 void writeSensorDatum(String measurement, String sensor, String placement, String key, double value) {
116
 void writeSensorDatum(String measurement, String sensor, String placement, String key, double value) {
117
-    InfluxData ms(measurement);
117
+    InfluxData ms(measurement.c_str());
118
     addTagsSensor(ms, sensor, placement);
118
     addTagsSensor(ms, sensor, placement);
119
 
119
 
120
-    ms.addValue(key, value);
120
+    ms.addValue(key.c_str(), value);
121
 
121
 
122
     debug.print("Writing ");
122
     debug.print("Writing ");
123
     debug.print(measurement);
123
     debug.print(measurement);

Loading…
Cancel
Save