Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Documentation lacking minimal example #25

Closed
positron96 opened this issue Dec 20, 2020 · 2 comments
Closed

Documentation lacking minimal example #25

positron96 opened this issue Dec 20, 2020 · 2 comments
Labels
Support Library support

Comments

@positron96
Copy link

Hello and thanks for the library.

The original ESP8266 WifiManager library can be used with default settings using 3 lines of code: 1 include and 2 lines in setup(). (See example: https://github.com/tzapu/WiFiManager/tree/master/examples/AutoConnect). The example with same name in ESPAsync_WiFiManager has whooping 500 lines of code, and it's not immediately clear what it does and what to pull in my code to have default functionality, e.g. start captive portal and connect the board to WiFi without having to hardcode the ESSID/password.
Please, provide a minimal example of this typical usecase, if one is possible.

@khoih-prog
Copy link
Owner

I just hope anybody using this library spending some time to look at the examples, understand and test them to have much better knowledge that will definitely benefit in the long run.

I really don't expect any user uses as fast food, without spending any time with it. The versatility and functionality are what I like to provide to the library's users, not just simplicity without any long term benefit.

Anyway, I've just created several dead-simple examples which I just hope anybody could do, simply by deleting the unwanted portions of code


Simplest Possible

  1. Async_AutoConnect_ESP32_minimal
  2. Async_AutoConnect_ESP8266_minimal
  3. Async_ConfigOnDRD_ESP32_minimal
  4. Async_ConfigOnDRD_ESP8266_minimal

@khoih-prog khoih-prog added the Support Library support label Dec 21, 2020
@positron96
Copy link
Author

Amazing, thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Support Library support
Projects
None yet
Development

No branches or pull requests

2 participants