From 90618b0ae6c4eeffc3fc6151927de12d8f039cf4 Mon Sep 17 00:00:00 2001 From: Pablo2048 Date: Sun, 6 Jan 2019 10:08:04 +0100 Subject: [PATCH] Undo zmena ip adresy - zatim to nepomohlo. Bugfix v ESP32 kodu. --- src/WiFiConfig.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/WiFiConfig.cpp b/src/WiFiConfig.cpp index 7c54276..164749b 100644 --- a/src/WiFiConfig.cpp +++ b/src/WiFiConfig.cpp @@ -697,8 +697,7 @@ wificonfigresult_t WiFiConfig::_setupAP(wificonfig_cb cb) #endif /* Soft AP network parameters */ -// IPAddress apIP(192, 168, 4, 1); - IPAddress apIP(10, 1, 1, 1); // zmena kvuli funkcnimu Captive portalu viz. https://github.com/espressif/arduino-esp32/issues/1037 + IPAddress apIP(192, 168, 4, 1); IPAddress netMsk(255, 255, 255, 0); WiFi.disconnect(); // pro jistotu se odpojime @@ -760,7 +759,7 @@ bool WiFiConfig::_testWifi(wificonfig_cb cb) // nakonfigurujeme ESP dle nove nastavenych parametru WiFi.disconnect(); // vsechno odpojime - s = EES_readString(configBase + offsetof(wificonfigarea_t, ssid), elementSize(wificonfigarea_t, ssid)); + String s = EES_readString(configBase + offsetof(wificonfigarea_t, ssid), elementSize(wificonfigarea_t, ssid)); String pass = EES_readString(configBase + offsetof(wificonfigarea_t, pass), elementSize(wificonfigarea_t, pass)); switch (EEPROM.read(configBase + offsetof(wificonfigarea_t, mode)))