mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #881] How to re-connect Wifi in Loop function? if wifi is in sleep mode then how to connect saved network??? #744
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#744
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Urenthummar on GitHub (May 5, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/881
PLEASE TRY DEVELOPMENT BRANCH before submitting bugs on release or master, in case they were already fixed.
POST SERIAL OUTPUT !
Issues without basic info will be ignored or closed!
Please fill the info fields, it helps to get you faster support ;)
if you have a stack dump decode it:
https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/stack_dump.rst
for better debug messages:
https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/debugging.rst
----------------------------- Remove above -----------------------------
Basic Infos
Hardware
WiFimanager Branch/Release:
Esp8266/Esp32:
Hardware: ESP-12e, esp01, esp25
ESP Core Version: 2.4.0, staging
Description
Problem description
Settings in IDE
Module: NodeMcu, Wemos D1
Additional libraries:
Sketch
Debug Messages
@tablatronix commented on GitHub (May 6, 2019):
WiFi.begin()
This is standard esp stuff not WM
@Urenthummar commented on GitHub (May 6, 2019):
Wifi.begin();
not working, i'm using it in function to wake nodemcu & connect to Wifi network.
here is my code......
void wifiConnect() {
WiFi.forceSleepWake();
WiFi.mode(WIFI_STA);
delay(10);
WiFi.begin();
Serial.print("Connecting to ");
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println();
Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
}
@Daemach commented on GitHub (May 6, 2019):
How can WiFi Manager turn into a complete wifi management solution? In a
perfect world it would combine the best of wifimulti and wifi manager, and
hit the following bullet points:
credentials
try to reconnect in this order every time.
On Mon, May 6, 2019 at 9:01 AM Urenthummar notifications@github.com wrote:
@tablatronix commented on GitHub (May 6, 2019):
well the esp auto connects on its own already, so if thats not working something else is wrong with your board, try erasing flash and reload
I imagine very few people need wifi multi or auto connect to open, but there is no reason it needs to be in wm , it is easy to code those functions.
@Daemach commented on GitHub (May 6, 2019):
Would wifimulti conflict with the connection attempt that wifimanager is
trying to do?
On Mon, May 6, 2019 at 10:31 AM Shawn A notifications@github.com wrote:
@tablatronix commented on GitHub (May 6, 2019):
if you call autoconnect after already connected then it just exits
@Daemach commented on GitHub (May 6, 2019):
Will it unload the webserver completely? I'm using the ESP32 with
asyncwebserver - a far more advanced and capable webserver that can support
mulltiple clients, websockets, etc. They both want to bind to port 80 so I
need to make sure wifimanager doesn't conflict.
On Mon, May 6, 2019 at 11:26 AM Shawn A notifications@github.com wrote:
@tablatronix commented on GitHub (May 6, 2019):
you are probably going to have issues, either with webserver or dns server, I would not suggest it