mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #834] WifiManager disable autoconnect to wifi #701
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#701
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 @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();
}
@tablatronix commented on GitHub (Feb 24, 2019):
make sure you are setting mode back to sta incase it is stuck on ap
@smackflad commented on GitHub (Mar 1, 2019):
Well, it worked! thank you!