mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-28 07:02:17 +03:00
используем везде isNetworkActive()
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -121,7 +121,7 @@ boolean RouterFind(String ssid) {
|
||||
|
||||
uint8_t RSSIquality() {
|
||||
uint8_t res = 0;
|
||||
if (WiFi.status() == WL_CONNECTED) {
|
||||
if (isNetworkActive()) {
|
||||
int rssi = WiFi.RSSI();
|
||||
if (rssi >= -50) {
|
||||
res = 6; //"Excellent";
|
||||
|
||||
Reference in New Issue
Block a user