Skip to content
Snippets Groups Projects
Unverified Commit 18c9f17b authored by Andreas Horn's avatar Andreas Horn
Browse files

updates code to work with current wifiClient version

parent be208838
No related branches found
No related tags found
No related merge requests found
......@@ -19,11 +19,11 @@
#include <WiFiClient.h>
#include <ArduinoJson.h>
//#define USE_DHT
#define USE_DHT
//#define USE_CO2
//#define USE_DUST
//#define USE_BMP
#define USE_BME
//#define USE_BME
#define USE_INFLUX
const char* configFilePath = "/config.json";
......@@ -972,7 +972,7 @@ void handle_valves() {
String httpBody = "valve,location=" + sensorLocation + ",valve_id=" + String(intValve) + " value=" + String(valveState[intValve]);
http.begin(influxMeasurementsUrl);
http.begin(wifiClient, influxMeasurementsUrl);
http.setTimeout(500);
int httpCode = http.POST(httpBody);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment