Skip to content

Commit 5473656

Browse files
authored
Update ESP8266WiFiAP.cpp (esp8266#7363)
Fix the bad adress of the the AP if the settings are wrong
1 parent 7346754 commit 5473656

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/ESP8266WiFi/src/ESP8266WiFiAP.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ bool ESP8266WiFiAPClass::softAP(const char* ssid, const char* passphrase, int ch
170170
if(ip.ip.addr == 0x00000000) {
171171
// Invalid config
172172
DEBUG_WIFI("[AP] IP config Invalid resetting...\n");
173-
//192.168.244.1 , 192.168.244.1 , 255.255.255.0
174-
ret = softAPConfig(0x01F4A8C0, 0x01F4A8C0, 0x00FFFFFF);
173+
//192.168.4.1 , 192.168.4.1 , 255.255.255.0
174+
ret = softAPConfig(0x0104A8C0, 0x00F4A8C0, 0x00FFFFFF);
175175
if(!ret) {
176176
DEBUG_WIFI("[AP] softAPConfig failed!\n");
177177
ret = false;

0 commit comments

Comments
 (0)