Skip to content
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

Async PersWiFiManager #24

Open
debsahu opened this issue Jan 15, 2019 · 6 comments
Open

Async PersWiFiManager #24

debsahu opened this issue Jan 15, 2019 · 6 comments

Comments

@debsahu
Copy link

debsahu commented Jan 15, 2019

If anyone is interested in asynchronous persistent WiFi Manager, check my fork: https://github.com/debsahu/PersWiFiManager

@gnalbandian
Copy link

Do you mind explaning the benefits of the asynchronous feature. Thanks!

@pfeerick
Copy link

pfeerick commented Oct 4, 2019

@gnalbandian I think the main reason to use an asynchronous version is when you want to use the ESPAsyncWebServer web server in your main code, rather than being restricted to the ESP8266WebServer. There is then also the question of if you want wifi configuration to be blocking in your code, or for it to be non-blocking... allowing the rest of the code to run regardless. i.e. with some of my applications, this allows the display to still be updated while waiting for the wifi to be configured, so it just has if the wifi is connected/configured before allowing those tasks to run.

@arlaor
Copy link

arlaor commented May 16, 2020

@debsahu, @r-downing Hi

What modifications should I make to your code to not use FS spiffs? what I want to do is that the code of the .htm files is executed from the same file .ino

@debsahu
Copy link
Author

debsahu commented May 27, 2020

@arlaor See the way I wrote the gziped html into PROGMEM.

@arlaor
Copy link

arlaor commented May 28, 2020

Hi @debsahu

I have made the following changes to the PersWiFiManager.cpp file: #define WIFI_HTM_GZ_PROGMEM
and
#define WIFI_HTM_PROGMEM

and I have left without uploading the files in the data folder.

The internet connection setup page opens and shows the available SSIDs and allows you to connect, but the REBOOT button does not work. Also, when I load the files from the data folder, to work with SPIFFS, it is observed that the page that opens is the same one that opens when SPIFFS is not used, regardless of whether the PROGMEM definitions are disabled. I can see that the browser is not opening the uploaded page in the data folder, because this page includes two extra buttons: WPS SETUP and AP MODE, which are not shown on the page that loads the sketch. That could be happening?
Another question, how can I disable the connection attempt via SPIFFS, which takes a long time waiting on ...starting SPIFFS?

@dushyantahuja
Copy link

@debsahu Can you rename your fork, so that we can use it directly using PlatformIO / Arduino Library Manager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants