diff --git a/ESP32_AP-Flasher/src/serialap.cpp b/ESP32_AP-Flasher/src/serialap.cpp index b564ddee..6b60afd0 100644 --- a/ESP32_AP-Flasher/src/serialap.cpp +++ b/ESP32_AP-Flasher/src/serialap.cpp @@ -14,6 +14,7 @@ #include "storage.h" #include "web.h" #include "zbs_interface.h" +#include "wifimanager.h" #define LOG(format, ...) printf(format, ##__VA_ARGS__) @@ -802,7 +803,7 @@ void checkWaitPowerCycle() { #endif } void segmentedShowIp() { - IPAddress IP = WiFi.localIP(); + IPAddress IP = wm.localIP(); char temp[12]; vTaskDelay(2000 / portTICK_PERIOD_MS); sendAPSegmentedData(apInfo.mac, (String) "IP Addr", 0x0200, true, true);