r-downing / PersWiFiManager

Persistent WiFiManager Arduino library for ESP8266
http://ryandowning.net/PersWiFiManager/
MIT License
111 stars 34 forks source link

basic WifiManager replacement example? #9

Open schweini opened 6 years ago

schweini commented 6 years ago

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?

JensW2000 commented 6 years ago
  1. the captive portal gets "http:///".
  2. the webserver behind redirects "/" to "index.htm"

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

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?