mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #436] Questions about FS Parameters #368
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#368
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 @JSCSJSCS on GitHub (Oct 6, 2017).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/436
I was trying out the WiFiManager_AutoConnectWithFSParameters example and have a few questions about some results I was getting and wanted to ask a few questions for clarification that were not immediately clear from the documentation.
1.) There is a comment in the code that says:
//define your default values here, if there are different values in config.json, they are overwritten.At first I thought the config.json values were overwritten by the defaults. Then I figured it out that it was the other way around. Then I thought, well if we hard-code defaults, we don't need a config.json file in the FS. But I could not get it to run without one.
2.) Is the config.json required before the first upload and run of the .ino?
As I said earlier, at first I did not have a config.json file uploaded. I remember first trying WiFiManager_AutoConnectWithFSParameters without first uploading a config.json file and getting all kinds of errors (many days ago, don't remember them). I then learned a lot about FS, found the ESP Sketch Data Upload Tool, created a config.json file and uploaded it with the same parameters that were in the .ino and everything seemed to work without error.
But is a config.json file uploaded with the ESP Sketch Data Upload tool even required at first if you have hard coded some defaults in the .ino file anyway? Do you need that file uploaded because the .ino file does not (cannot?) create it on it's own?
3.) Lastly, most times, after entering credentials at the AP 192.168.4.1 WiFi page, I get this result:
I am very careful to type in the correct password each time, but it can take several tries to get a successful connection and then it says"
How can I go from "failed to connect" to "Already connected. Bailing out.**"?
This code is magnificent and I love using it. I just need to know a little bit more about how to use it correctly.
Arduino 1.8.3 using NodeMCU V3 LoLin development board.
@Viniciusvalenca commented on GitHub (Dec 24, 2017):
Put the wifiManager on 1 thing on setup(),