khoih-prog / ESPAsync_WiFiManager

This is an ESP32 (including ESP32-S2 and ESP32-C3) / ESP8266 WiFi Connection Manager, using ESPAsyncWebServer, with fallback web configuration portal. Use this library for configuring ESP32, ESP8266 modules' WiFi, etc. Credentials at runtime. You can also specify static DNS servers, personalized HostName, fixed or random AP WiFi channel. With examples supporting ArduinoJson 6.0.0+ as well as 5.13.5- . Using AsyncDNSServer instead of DNSServer now.
MIT License
290 stars 73 forks source link

WiFiManager "on demand" (for configuration only) example #72

Closed ClemensGruber closed 2 years ago

ClemensGruber commented 2 years ago

I'm searching for example code that uses WiFi "on demand" for configuration only. Data telemetry is done by GSM (and only optional by Wifi). So the scenario is

Is there any exampel code for this scenario? I'm a bit confused about the many Async_ConfigOn... examples ...

khoih-prog commented 2 years ago

Hi,

Thanks for your interest and trust in the library. As you know, no library and example is designed to be able to apply in all complex use cases in the world, especially yours.

I'm sorry I won't spend time on this not-issue, unless a library's bug is proven.

I suggest you ask for advice of many experts in Arduino Forum and/or ESP32 / ESP8266 forums

Good Luck,

khoih-prog commented 2 years ago

BTW, have a look at these examples to see if you can use anything

  1. SmartFarm_DeepSleep
  2. Async_ConfigOnSwitchFS where you can replace this following line Async_ConfigOnSwitchFS.ino#L1201 with any condition you'd like to activate Config Portal.
if ((digitalRead(TRIGGER_PIN) == LOW) || (digitalRead(TRIGGER_PIN2) == LOW))

Certainly, your use case requires more careful and complex design and implementation.