WiFiManager icon indicating copy to clipboard operation
WiFiManager copied to clipboard

Support for WifiManager as ESP-IDF component

Open abrender opened this issue 3 years ago • 3 comments

Enables support for WifiManager as an ESP-IDF component. ESP-IDF is a popular development framework for ESP32 chips.

This file is based on the CMakeLists.txt file from the popular Adafruit-GFX-Library library.

abrender avatar Sep 12 '22 05:09 abrender

Hey @tablatronix is there anything that I should to in order to run the workflow or help get this merged in? Thanks in advance!

abrender avatar Sep 16 '22 19:09 abrender

Yeah sorry I was looking this over I have not used idf much

tablatronix avatar Sep 16 '22 23:09 tablatronix

Yeah sorry I was looking this over I have not used idf much

I was not familiar with it either, but I found that Adafruit-GFX-Library has this file (https://github.com/adafruit/Adafruit-GFX-Library/blob/master/CMakeLists.txt) and I created one for WiFiManager and it works well :)

abrender avatar Sep 17 '22 22:09 abrender

@abrender this is awesome, I was pretty desperate to get this library working with ESP-IDF. Loading the WifiManager codebase into component/arduino/library and adding relative paths to arduino CMakeLists.txt and create a CMakeLists.txt inside WiFiManager it compiles and works well

letis009 avatar Sep 30 '22 06:09 letis009

@letis009 You will need to clone this repo into your project's components directory (or add it as a git submodule git submodule add https://github.com/tzapu/WiFiManager.git components/WiFiManager).

After this pull requested is merged in you can update your main/CMakeLists.txt file to have:

idf_component_register(
  # Rest of your stuff here
  REQUIRES WiFiManager
)

Until this pull request is merged in, you can update your main/CMakeLists.txt to look like this one in the mariobros-clock project: https://github.com/jnthas/mariobros-clock/blob/4980007f7efb6980b2b1385dc9e5f42997c14340/main/CMakeLists.txt

abrender avatar Oct 01 '22 19:10 abrender

So this is pretty innoculous? I can safely merge yhis without testing?

tablatronix avatar Oct 01 '22 20:10 tablatronix

Ive done a far bit of testing on ESP32-wrover-kit amd ESP32-c3 modules and have awesome results. Seems to have sorted the issue with soft-ap not starting as well. I copied the beta 13 into components/arduino and added the directory to arduino/CMakes file. Build , flash and good to go

letis009 avatar Oct 01 '22 21:10 letis009

So this is pretty innoculous? I can safely merge yhis without testing?

I believe so. I've been using it extensively. Also many major projects have a similar file - Adafruit-GFX-Library, ESP32-HUB75-MatrixPanel-DMA, Adafruit_BusIO, etc.

abrender avatar Oct 01 '22 21:10 abrender