We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 537d1e8 + fee369a commit 9dd7799Copy full SHA for 9dd7799
src/InfluxDbClient.cpp
@@ -453,7 +453,8 @@ bool InfluxDBClient::validateConnection() {
453
_lastErrorResponse = FPSTR(UnitialisedMessage);
454
return false;
455
}
456
- String url = _serverUrl + (_dbVersion==2?"/ready":"/ping");
+ // on version 1.x /ping will by default return status code 204, without verbose
457
+ String url = _serverUrl + (_dbVersion==2?"/ready":"/ping?verbose=true");
458
INFLUXDB_CLIENT_DEBUG("[D] Validating connection to %s\n", url.c_str());
459
460
if(!_httpClient.begin(*_wifiClient, url)) {
0 commit comments