mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-05-02 12:07:02 +00:00
refactor network code
This commit is contained in:
@@ -79,9 +79,9 @@ void WebStatusService::systemStatus(AsyncWebServerRequest * request) {
|
||||
}
|
||||
#endif
|
||||
|
||||
root["ap_status"] = EMSESP::esp32React.apStatus();
|
||||
root["ap_status"] = EMSESP::network_.ap_connected();
|
||||
|
||||
if (EMSESP::system_.ethernet_connected()) {
|
||||
if (EMSESP::network_.ethernet_connected()) {
|
||||
root["network_status"] = 10; // custom code #10 - ETHERNET_STATUS_CONNECTED
|
||||
root["wifi_rssi"] = 0;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user