Undo zmena ip adresy - zatim to nepomohlo. Bugfix v ESP32 kodu.
This commit is contained in:
parent
7fec2df6b9
commit
90618b0ae6
@ -697,8 +697,7 @@ wificonfigresult_t WiFiConfig::_setupAP(wificonfig_cb cb)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Soft AP network parameters */
|
/* Soft AP network parameters */
|
||||||
// IPAddress apIP(192, 168, 4, 1);
|
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 netMsk(255, 255, 255, 0);
|
IPAddress netMsk(255, 255, 255, 0);
|
||||||
|
|
||||||
WiFi.disconnect(); // pro jistotu se odpojime
|
WiFi.disconnect(); // pro jistotu se odpojime
|
||||||
@ -760,7 +759,7 @@ bool WiFiConfig::_testWifi(wificonfig_cb cb)
|
|||||||
// nakonfigurujeme ESP dle nove nastavenych parametru
|
// nakonfigurujeme ESP dle nove nastavenych parametru
|
||||||
WiFi.disconnect(); // vsechno odpojime
|
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));
|
String pass = EES_readString(configBase + offsetof(wificonfigarea_t, pass), elementSize(wificonfigarea_t, pass));
|
||||||
|
|
||||||
switch (EEPROM.read(configBase + offsetof(wificonfigarea_t, mode)))
|
switch (EEPROM.read(configBase + offsetof(wificonfigarea_t, mode)))
|
||||||
|
Loading…
Reference in New Issue
Block a user