debsahu / ESP-MQTT-AWS-IoT-Core

Arduino examples of connecting ESP8266/ESP32 to AWS IOT Core
MIT License
118 stars 50 forks source link

MQTT.h: No such file or directory #5

Closed adamaero closed 5 years ago

adamaero commented 5 years ago
C:\Users\Adam\Documents\Arduino\ESP-MQTT-AWS-IoT-Core-master\ESP-MQTT-AWS-IoT-Core-master\Arduino\MQTT\MQTT.ino:9:18: fatal error: MQTT.h: No such file or directory

 #include <MQTT.h>

                  ^

compilation terminated.

exit status 1
Error compiling for board NodeMCU 0.9 (ESP-12 Module).

I downloaded the libraries: library

What am I missing?

adamaero commented 5 years ago

Where should MQTT.h be? image image

debsahu commented 5 years ago

The library looks like it's installed correctly. Could you try compiling any of the examples from Arduino MQTT, does it compile?

adamaero commented 5 years ago

It was because arduino-mqtt-master, since it is a library, cannot be a subfolder of itself.