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
664 stars 217 forks source link

How to use Event callbacks? #49

Closed pawisoon closed 5 years ago

pawisoon commented 5 years ago

Hi, I managed to flash wifi manager on my esp32. Now I would like to add functionality that will check if some pin is high state. If that is true just make a post request or connect to mqtt. How would I do it?

tonyp7 commented 5 years ago

Hello, I don't understand how this is related to event callbacks? You can just create a new thread that will hold you user code.

pawisoon commented 5 years ago

So after installing wifimanager I can code stuff in Arduino IDE and upload my sketch to it? How would I know that I have a wifi connection in new thread?

tonyp7 commented 5 years ago

Not with Arduino IDE no; this project is an esp-idf project and must be compiled with the esp-idf toolchain.

Check https://docs.espressif.com/projects/esp-idf/en/latest/get-started/