ESP32 and Cayenne

I am trying to connect:

and report an error:
C:\Users\Toshiba\Documents\Arduino\libraries\Cayenne-MQTT-ESP-master\src/CayenneMQTTESP32.h:21:18: fatal error: WiFi.h: No such file or directory
compilation terminated.

Thanks for the answers

you need to add WiFi.h library GitHub - arduino-libraries/WiFi: WiFi Library for Arduino

I added a line
#include <WiFi.h>

and it works.

thanks for the help

1 Like