PersWiFiManager icon indicating copy to clipboard operation
PersWiFiManager copied to clipboard

basic WifiManager replacement example?

Open schweini opened this issue 7 years ago • 2 comments

This library sounds exactly like what I need right now - but I have to admit that I can't find any basic documentation on how to get it running?

It sounds as if this module offers the same functionality as WifiManager (start AP mode with wifi configuration captife portal) if the ESP8266 can't connect to its previous network), but allow the ESP8266 to run other stuff while in AP mode. If this is indeed the case, how do I actually do that?

schweini avatar Mar 25 '18 00:03 schweini

  1. the captive portal gets "http://<apmode_ip>/".
  2. the webserver behind redirects "/" to "index.htm"

  1. you must design an index.htm that will be displayed in captive portal mode or when calling "http://<apmode_ip>/" in a browser
  2. this index htm shouds contain at least two links > for example "WiFi-manager stuff (target: /settings.htm)" and "other stuff (target: myStuff.htm)"
  3. some APIs are available as default. For exampla /wifi, /wifi/rst,
  4. you can create custom APIs (see examples > "server.on"-handlers
  5. all htm files must be uploaded to the flash memory before running the project

JensW2000 avatar Mar 29 '18 06:03 JensW2000

Hi @JensW2000

How can I adapt this library to be used without SPIFFS? the idea is that the htm pages are inside the code in the .ino file What parts of the code should I modify and by what commands should I replace them?

arlaor avatar May 16 '20 23:05 arlaor