Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use WiFiManager instead of hard wired AP user/password #7

Open
buttim opened this issue Aug 23, 2022 · 1 comment
Open

Use WiFiManager instead of hard wired AP user/password #7

buttim opened this issue Aug 23, 2022 · 1 comment

Comments

@buttim
Copy link

buttim commented Aug 23, 2022

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

@getsetbro
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants