feature/http_call_send_json #3
1 changed files with 3 additions and 3 deletions
|
@ -178,7 +178,7 @@ void _writePoint()
|
|||
|
||||
uint32_t _timeout = millis();
|
||||
|
||||
debug("InfluxDB: check connection");
|
||||
//debug("InfluxDB2: check connection");
|
||||
do {
|
||||
} while (client.validateConnection() and (_timeout + INFLUXDB_TIMEOUT_MS) <= millis());
|
||||
|
||||
|
@ -190,7 +190,7 @@ void _writePoint()
|
|||
|
||||
_timeout = millis();
|
||||
|
||||
debug("InfluxDB: waiting for write ready");
|
||||
//debug("InfluxDB2: waiting for write ready");
|
||||
// wait unitl ready
|
||||
do {
|
||||
} while (client.canSendRequest() == false and (_timeout + INFLUXDB_TIMEOUT_MS) <= millis());
|
||||
|
@ -204,7 +204,7 @@ void _writePoint()
|
|||
// Write point
|
||||
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()));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue