1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

Update ESP8266WiFiAP.cpp (#7363)

Fix the bad adress of the the AP if the settings are wrong
This commit is contained in:
Jonathan Dumaresq 2020-06-08 16:41:25 -04:00 committed by GitHub
parent 7346754c09
commit 5473656eac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,8 +170,8 @@ bool ESP8266WiFiAPClass::softAP(const char* ssid, const char* passphrase, int ch
if(ip.ip.addr == 0x00000000) { if(ip.ip.addr == 0x00000000) {
// Invalid config // Invalid config
DEBUG_WIFI("[AP] IP config Invalid resetting...\n"); DEBUG_WIFI("[AP] IP config Invalid resetting...\n");
//192.168.244.1 , 192.168.244.1 , 255.255.255.0 //192.168.4.1 , 192.168.4.1 , 255.255.255.0
ret = softAPConfig(0x01F4A8C0, 0x01F4A8C0, 0x00FFFFFF); ret = softAPConfig(0x0104A8C0, 0x00F4A8C0, 0x00FFFFFF);
if(!ret) { if(!ret) {
DEBUG_WIFI("[AP] softAPConfig failed!\n"); DEBUG_WIFI("[AP] softAPConfig failed!\n");
ret = false; ret = false;