tonyp7 / esp32-wifi-manager

Captive Portal for ESP32 that can connect to a saved wireless network or start an access point where you can connect to existing wifis.
MIT License
648 stars 214 forks source link

How to Stop wifi manager #133

Open Bertoleti opened 3 years ago

Bertoleti commented 3 years ago

Hi,

I'm trying to find out a way to stop wifi manager and restart it after a while;

As my project has a ethernet conection, the goal is use ethernet cable all time, but, if a ethernet cable is not connected, so, I start wifi manager.

But if wifi manager has started and the ethernet cable is plugged, I need to stop wifi manager and use the ethernet cable.

I saw the function wifi_manager_destroy(), but I don't know if it's the righ function to use.

I would like to "pause" the wifi manager and not destoy all objects.

Thanks in advance.