Hi All,
I get the following error when I try and compile code with an ESP8266.
I have been following this guide. Any ideas?
Hi All,
I get the following error when I try and compile code with an ESP8266.
I have been following this guide. Any ideas?
Hiya @Theo272603
Welcome to the forums.
The error means the linker doesn’t know what an MQTT object
is.
Quick things to check.
Have you got this library installed?
The error is also suggesting an alternate object : MQTT_H
. Have you tried that?
Hi Theo,
Welcome to the forums!
Pix is already on top of my thoughts, MQTT should be found within the EasyIoT Library. Where did you get your code from?
code was downloaded from here
If you left click on
#include <MQTT.h>
and select go to definition does it take you to the header file? If not there may have been an issue when downloading the library.
I had no idea you could do this! Great tip!
thanks jack it takes me here
Hi Theo,
It looks like you may have installed a different library package to the one used in the guide,
Within the repo that you found the code, there is a file containing all of the libraries used to make those examples.
i.e. your MQTT libraries folder should be esp-mqtt
Liam