Undo zmena ip adresy - zatim to nepomohlo. Bugfix v ESP32 kodu.

This commit is contained in:
Pavel Brychta 2019-01-06 10:08:04 +01:00
parent 7fec2df6b9
commit 90618b0ae6

View File

@ -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)))