используем везде isNetworkActive()

This commit is contained in:
DmitriyTychina
2023-09-03 19:33:40 +03:00
parent 646128b999
commit 93dfa8ee83
7 changed files with 8 additions and 8 deletions

View File

@@ -20,7 +20,7 @@ void updateDeviceStatus() {
// jsonRead(settingsFlashJson, F("serverip"), serverIP);
String url = serverIP + F("/projects/esprebootstat.php");
// SerialPrint("i", "Stat", "url " + url);
if ((WiFi.status() == WL_CONNECTED)) {
if ((isNetworkActive())) {
WiFiClient client;
HTTPClient http;
http.begin(client, url);