[temporary commit]

This commit is contained in:
Phat Nguyen
2024-04-05 06:39:59 +07:00
parent f681d4b2e8
commit dfba4fa4b1
5 changed files with 241 additions and 16 deletions

View File

@ -51,13 +51,16 @@ bool AgApiClient::fetchServerConfiguration(void) {
HTTPClient client;
WiFiClient wifiClient;
if (client.begin(wifiClient, uri) == false) {
#else
HTTPClient client;
if (client.begin(uri) == false) {
#endif
getConfigFailed = true;
return false;
}
#else
HTTPClient client;
if (client.begin(uri) == false) {
getConfigFailed = true;
return false;
}
#endif
/** Get data */
int retCode = client.GET();