-
Notifications
You must be signed in to change notification settings - Fork 13.3k
WiFi Station Mode Confusion #6346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
As far as I know, yes that's needed to make sure WiFi related information is not stored in flash and thus wear out that sector quite fast.
Not sure if it's considered to be better, but there is also an option to include the last known channel and BSSID (MAC address of AP)
I do see the same behavior every now and then.
And several other steps to try and fix these issues. |
Hi, thank you for the detailed reply, it is greatly appreciated. I have implemented 1 suggestion so far and on the single test device I have seen a great improvement on the initial connection. Using the bssid and channel method. Before this change, I am doing final checks and will then push the bin file to my server, where all the devices will grab the update. Once this is done, I will give it a few days and let you know how things are going. |
Please, also have a look at my recent findings I linked here: #6266 (comment) |
@louislewis2 Closing for the same reasons as #5527 . |
Hi,
I have read the documentation around WiFi, I have also read numerous issues and could not work out from that what the "right" thing is, that I need to do.
I am using my own configuration file for storing WiFi credentials, along with many other system configuration values. I have my own process, of being able to change these from a configuration section. The units do deep sleep, and upon awakening they reconnect to the WiFi network configured.
What is the best way to call into the exposed api's for this kind of setup?
Do I need to call WiFi.persistant(false) after each boot?
I do at the moment use WiFi.begin("ssid","password") to connect to the network saved in configuration, is this right or is there a better way?
I am also seeing strange occurrences which can be best described by this issue. Where regardless that the WiFi network has not changed, and the units are using the correct credentials, that they at some point simply stop connecting to the network. Only doing a full power cycle restores it.
I also see that sometimes the WiFi returns that the password is incorrect, at this point I remove the credentials from configuration and then requires the user to enter new credentials, however this happens at multiple locations, where the stations have never had their password changed?
#5527
I have more than 50 of these devices, all showing the same issues.
Any help, guidance on the matter will be greatly appreciated.
The text was updated successfully, but these errors were encountered: