PersWiFiManager icon indicating copy to clipboard operation
PersWiFiManager copied to clipboard

Async PersWiFiManager

Open debsahu opened this issue 5 years ago • 6 comments

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

debsahu avatar Jan 15 '19 21:01 debsahu

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

gnalbandian avatar Oct 03 '19 12:10 gnalbandian

@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.

pfeerick avatar Oct 04 '19 00:10 pfeerick

@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

arlaor avatar May 16 '20 14:05 arlaor

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

debsahu avatar May 27 '20 00:05 debsahu

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?

arlaor avatar May 28 '20 18:05 arlaor

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

dushyantahuja avatar Jun 17 '20 11:06 dushyantahuja