Hi!
I am trying to add esp_websocket_client component to my project.
I have added the mdns component (same repo) in the same way, just dropping it into the component folder.
It seems to work fine for detecting the component, but the lwip library is making things difficult.
This is the error chain thats happening:
myfile: #include “esp_websocket_client.h”
esp_websocket_client.h:17 - #include <sys/socket.h>
lwip port esp32 socket.h:33 - #include “lwip/sockets.h”
lwip include lwip socket.h:8 - #include_next “lwip/sockets.h”
at which point i can’t follow it anymore but it says:
cannot open source file “esp32_mock.h” (dependency of “lwip/sockets.h”)
So what kind of setting am i missing? is the component incorrectly included ? is something in my .ini file not well defined or in my config since apparently the sp32 socket implementation is missing?
platform = espressif32@6.3.0 ; ESP-IDF v5.0.2
board = esp32dev
framework = espidf
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
board_build.partitions = partition_table.csv
board_build.flash_mode = qio
build_flags =
-D BOARD_HAS_PSRAM
-D CONFIG_SPIRAM_CACHE_WORKAROUND
-D SOFTWARE_VERSION=10
-D HARDWARE_VERSION=3
upload_port = /dev/ttyUSB*
monitor_port = /dev/ttyUSB*
compiling works fine, just intelisense is wrecked