[GH-ISSUE #1023] AP Webserver not responding after WiFiManager connected to WiFi #869

Closed
opened 2026-02-28 01:27:25 +03:00 by kerem · 2 comments
Owner

Originally created by @CoderUni on GitHub (Mar 15, 2020).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1023

Basic Infos

Hardware

WiFimanager Branch/Release:

  • Master
  • Development

Esp8266/Esp32:

  • ESP8266
  • ESP32

ESP Core Version: 2.4.0, staging

  • 2.3.0
  • 2.4.0
  • staging (master/dev)

###Serial Monitor Log

*WM: THIS MAY CAUSE AP NOT TO START UP PROPERLY. YOU NEED TO COMMENT IT OUT AFTER ERASING THE DATA.
*WM: 
*WM: Configuring access point... 
*WM: ssid
*WM: password
*WM: Custom AP IP/GW/Subnet
*WM: AP IP address: 
*WM: 192.168.4.1
*WM: HTTP server started
*WM: WiFi save
*WM: Sent wifi save page
*WM: Connecting to new AP
*WM: Connecting as wifi client...
*WM: Status:
*WM: 0
*WM: [ERROR] WiFi.begin res:
*WM: 6
*WM: Connection result: 
*WM: 3
connected...yeey :)
192.XXX.XXX.XXX
*WM: freeing allocated params!

Description

I changed your code wherein it makes the esp8266 go STA mode after successfully connecting to a WiFi. I changed it to AP_STA mode instead of just sta mode so I can update a text in the webserver. However, this didn't go as planned because the webserver stopped responding once the esp8266 connected to the wifi. How would this be fixed?

Originally created by @CoderUni on GitHub (Mar 15, 2020). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1023 ### Basic Infos #### Hardware **WiFimanager Branch/Release:** - [x] Master - [ ] Development **Esp8266/Esp32:** - [x] ESP8266 - [ ] ESP32 **ESP Core Version: 2.4.0, staging** - [ ] 2.3.0 - [x] 2.4.0 - [ ] staging (master/dev) ###Serial Monitor Log ``` *WM: THIS MAY CAUSE AP NOT TO START UP PROPERLY. YOU NEED TO COMMENT IT OUT AFTER ERASING THE DATA. *WM: *WM: Configuring access point... *WM: ssid *WM: password *WM: Custom AP IP/GW/Subnet *WM: AP IP address: *WM: 192.168.4.1 *WM: HTTP server started *WM: WiFi save *WM: Sent wifi save page *WM: Connecting to new AP *WM: Connecting as wifi client... *WM: Status: *WM: 0 *WM: [ERROR] WiFi.begin res: *WM: 6 *WM: Connection result: *WM: 3 connected...yeey :) 192.XXX.XXX.XXX *WM: freeing allocated params! ``` ### Description I changed your code wherein it makes the esp8266 go STA mode after successfully connecting to a WiFi. I changed it to AP_STA mode instead of just sta mode so I can update a text in the webserver. However, this didn't go as planned because the webserver stopped responding once the esp8266 connected to the wifi. How would this be fixed?
kerem closed this issue 2026-02-28 01:27:26 +03:00
Author
Owner

@tablatronix commented on GitHub (Mar 15, 2020):

The webserver shutsdown when cp exits use non blocking mode in development branch

<!-- gh-comment-id:599254117 --> @tablatronix commented on GitHub (Mar 15, 2020): The webserver shutsdown when cp exits use non blocking mode in development branch
Author
Owner

@CoderUni commented on GitHub (Mar 16, 2020):

@tablatronix Thanks, will check it out.

<!-- gh-comment-id:599303440 --> @CoderUni commented on GitHub (Mar 16, 2020): @tablatronix Thanks, will check it out.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#869
No description provided.