feature/http_call_send_json #3

Merged
f merged 56 commits from feature/http_call_send_json into master 2022-11-27 11:02:22 +01:00
Showing only changes of commit 6aa242da85 - Show all commits

View file

@ -178,7 +178,7 @@ void _writePoint()
uint32_t _timeout = millis(); uint32_t _timeout = millis();
debug("InfluxDB: check connection"); //debug("InfluxDB2: check connection");
do { do {
} while (client.validateConnection() and (_timeout + INFLUXDB_TIMEOUT_MS) <= millis()); } while (client.validateConnection() and (_timeout + INFLUXDB_TIMEOUT_MS) <= millis());
@ -190,7 +190,7 @@ void _writePoint()
_timeout = millis(); _timeout = millis();
debug("InfluxDB: waiting for write ready"); //debug("InfluxDB2: waiting for write ready");
// wait unitl ready // wait unitl ready
do { do {
} while (client.canSendRequest() == false and (_timeout + INFLUXDB_TIMEOUT_MS) <= millis()); } while (client.canSendRequest() == false and (_timeout + INFLUXDB_TIMEOUT_MS) <= millis());
@ -204,7 +204,7 @@ void _writePoint()
// Write point // Write point
if (!client.writePoint(sensor)) if (!client.writePoint(sensor))
{ {
debug("InfluxDB write failed: " + String(client.getLastErrorMessage()) + " Err: " + String(client.getLastStatusCode())); debug("InfluxDB2 write failed: " + String(client.getLastErrorMessage()) + " Err: " + String(client.getLastStatusCode()));
} }
} }