DIY-Camera-Slider icon indicating copy to clipboard operation
DIY-Camera-Slider copied to clipboard

Use WiFiManager instead of hard wired AP user/password

Open buttim opened this issue 3 years ago • 1 comments

This is easy and would even allow binary distribution of the firmware (no need for Arduino IDE installation and recompilation).

I gave it a try and it should be enough to do the following modifications to DIY_CameraSlider.ino_:

  1. Replace #include "config_wifi.h" with #include <WiFiManager.h>
  2. Add the declaration WiFiManager wifiManager; after all the includes
  3. Remove the whole while after the comment // Connect to WiFi
  4. Add in its place the single line wifiManager.autoConnect("DIY_CameraSlider", "cameraslider");

The file config_wifi.h can then be removed

buttim avatar Aug 23 '22 14:08 buttim

I just tried this and I get conflicts due to WiFiManager.h and ESPAsyncWebServer.h both having HTTPMethods.

getsetbro avatar Jan 11 '24 20:01 getsetbro