DIY-Camera-Slider
DIY-Camera-Slider copied to clipboard
Use WiFiManager instead of hard wired AP user/password
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_:
- Replace
#include "config_wifi.h"with #include<WiFiManager.h> - Add the declaration
WiFiManager wifiManager;after all the includes - Remove the whole
whileafter the comment// Connect to WiFi - Add in its place the single line
wifiManager.autoConnect("DIY_CameraSlider", "cameraslider");
The file config_wifi.h can then be removed
I just tried this and I get conflicts due to WiFiManager.h and ESPAsyncWebServer.h both having HTTPMethods.