[GH-ISSUE #834] WifiManager disable autoconnect to wifi #701

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

Originally created by @smackflad on GitHub (Feb 24, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/834

Hello, what i'm trying to do is to use wifi manager until the part that it connects to the wifi, for example i want it to enable a AP, the user connect to it via wifi, give wifi credentials and then stop there.
Why i need this: im trying to connect my esp8266 to the blynk server but its unstable while im using WiFiManager.. if I connect to the server with out WiFiManager it works correctly so I figured out that this could be a possible solution to get the credentials and let Blynk configure itself like normal.
I know that this isn't a Blynk forum but the problem is more WiFiManager than Blynk(by my opinion).
Thanks in advance!

Code that connection is unstable:
#define BLYNK_PRINT Serial

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h>

char auth[] = "xxx";
void setup()
{
// Debug console
Serial.begin(9600);
WiFiManager wifiManager;

wifiManager.autoConnect("AutoConnectAP");
Serial.println("connected...yeey :)");
delay(1000);
Blynk.config(auth);
}

void loop()
{
Blynk.run();
}

Originally created by @smackflad on GitHub (Feb 24, 2019). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/834 Hello, what i'm trying to do is to use wifi manager until the part that it connects to the wifi, for example i want it to enable a AP, the user connect to it via wifi, give wifi credentials and then stop there. Why i need this: im trying to connect my esp8266 to the blynk server but its unstable while im using WiFiManager.. if I connect to the server with out WiFiManager it works correctly so I figured out that this could be a possible solution to get the credentials and let Blynk configure itself like normal. I know that this isn't a Blynk forum but the problem is more WiFiManager than Blynk(by my opinion). Thanks in advance! Code that connection is unstable: #define BLYNK_PRINT Serial #include <ESP8266WiFi.h> #include <BlynkSimpleEsp8266.h> #include <DNSServer.h> #include <ESP8266WebServer.h> #include <WiFiManager.h> char auth[] = "xxx"; void setup() { // Debug console Serial.begin(9600); WiFiManager wifiManager; wifiManager.autoConnect("AutoConnectAP"); Serial.println("connected...yeey :)"); delay(1000); Blynk.config(auth); } void loop() { Blynk.run(); }
kerem closed this issue 2026-02-28 01:26:40 +03:00
Author
Owner

@tablatronix commented on GitHub (Feb 24, 2019):

make sure you are setting mode back to sta incase it is stuck on ap

<!-- gh-comment-id:466781834 --> @tablatronix commented on GitHub (Feb 24, 2019): make sure you are setting mode back to sta incase it is stuck on ap
Author
Owner

@smackflad commented on GitHub (Mar 1, 2019):

Well, it worked! thank you!

<!-- gh-comment-id:468805637 --> @smackflad commented on GitHub (Mar 1, 2019): Well, it worked! thank you!
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#701
No description provided.