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.
1 parent 537d1e8 commit 7156ac9Copy full SHA for 7156ac9
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 200
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