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
652 stars 214 forks source link

Can't build example using esp-idf v4.1 #112

Closed kaizoku-oh closed 3 years ago

kaizoku-oh commented 3 years ago

Prerequisites

Description

I'm facing the same issue similar #103 when working with ESP-IDF 4.1 on platformio. error: unknown type name 'esp_event_handler_instance_t'; did you mean 'esp_event_handler_t'? Is there anyway to get around this build error while still using the 4.1 version?

Steps to Reproduce

  1. install platformio extention on vscode
  2. create a new project for esp32 using the esp-idf framework
  3. create a components folder under the root of the project and copy the wifi-manager into it (tried master and other tags)
  4. build

System Configuration

tonyp7 commented 3 years ago

Hello,

This is normal, this code only compile with 4.2 and up as per the requirements:

https://github.com/tonyp7/esp32-wifi-manager#requirements

kaizoku-oh commented 3 years ago

Are you considering to support a stable release in the future? because v4.2 is only pre-release beta now contrary to v4.1 which is a stable release and will be supported until February 2023 according to espressif https://github.com/espressif/esp-idf/releases/tag/v4.1

tonyp7 commented 3 years ago

Definitely not. 4.2 should hit RC stage fairly soon and the master tree is already in 4.3. There’s no point holding back the codebase at this stage.