Yacubane / esp32-arduino-matter

Matter IoT protocol library for ESP32 working on Arduino framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot locate esp_netif_types.h

daniel-frenkel opened this issue · comments

Hello, I'm trying to compile the Light example and it fails immediately due to the following error

C:\Users\<USER>\Documents\Arduino\libraries\esp32-arduino-matter\src/platform/ESP32/CHIPDevicePlatformEvent.h:31:29: fatal error: esp_netif_types.h: No such file or directory

From my Google searches, this appears to be an ESP-IDF file

Is anyone else having this issue?

Pls post your:

  • ESP32 model
  • Arduino version and version of board

I'm using the ESP32 Dev Module, however, it won't compile regardless of which ESP32 board that I select in Arduino so I don't think the board is the problem.

I am using Arduino 1.8.19 and the latest version of ESP32-arduino-matter

I think my board version is old. In the board manager it says I have 1.0.6 which I thought was the latest version, but looks like I'm wrong. You clearly state it needs to be 2.0.6 so I will fix that.

Everything works great, I just upgraded to ESP32 board version 2.0.6 and followed the rest of your instructions more carefully. Thanks for this amazing library

It's sad that this lib is literally compiled against concrete version of ESP32 SDK. In perfect world we should compile Matter SDK within Arduino IDE, but Matter compilation process is so complicated and customized that it's not easy to port it into Arduino. Another idea would be to re-implement Matter for ESP32, but this task is not easy as well because Matter standard is quite... complicated, comparing it to other open standards, like Mozilla WebThings.