arduinoWebSockets icon indicating copy to clipboard operation
arduinoWebSockets copied to clipboard

esp32 websocket client WifiMulti.h error

Open gurkanucar opened this issue 2 years ago • 1 comments

I am getting this error when I want to use this example:

WebSocket -> esp32 -> WebSocketClient

Error:

WebSocketClient:11:10: fatal error: WiFiMulti.h: No such file or directory
   11 | #include <WiFiMulti.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
exit status 1
WiFiMulti.h: No such file or directory

gurkanucar avatar Feb 27 '22 17:02 gurkanucar

WiFiMulti.h is part of the ESP32 core:

https://github.com/espressif/arduino-esp32/blob/371f382db7dd36c470bb2669b222adf0a497600d/libraries/WiFi/examples/WiFiMulti/WiFiMulti.ino

and the build test for https://github.com/Links2004/arduinoWebSockets/blob/master/examples/esp32/WebSocketClient/WebSocketClient.ino is passing https://github.com/Links2004/arduinoWebSockets/runs/5837806372?check_suite_focus=true

this points to a problem in your IDE / setup

Links2004 avatar Apr 05 '22 17:04 Links2004