I’m following the instructions from this site to flash my Arduino from here: GitHub - thehookup/MQTT_Motorized_Curtains: Stepper motor controlled MQTT curtains - Home Assistant Integrated.
But when verifying the sketch I get the error attached in “error message.text”. I’ve also attached the code (private data has been changed in the code to hidden").
The errors mostly include:
undefined reference to
PubSubClient undefined reference to AH_EasyDriver
undefined reference to `SimpleTimer
Please can you help
code.txt (7.99 KB)
Error message.txt (18.8 KB)
Fixed it now buy coping the library files to the Arduino install directory instead of sketch directory.
This code is intended for an ESP8266. Is it that what you are using? Have you installed all the libraries in the IDE:
#include "SimpleTimer.h" //https://github.com/marcelloromani/Arduino-SimpleTimer/tree/master/SimpleTimer
#include <ESP8266WiFi.h> //if you get an error here you need to install the ESP8266 board manager
#include <ESP8266mDNS.h> //if you get an error here you need to install the ESP8266 board manager
#include "PubSubClient.h" //https://github.com/knolleary/pubsubclient
#include <ArduinoOTA.h> //https://github.com/esp8266/Arduino/tree/master/libraries/ArduinoOTA
#include "AH_EasyDriver.h" //http://www.alhin.de/arduino/downloads/AH_EasyDriver_20120512.zip
and all the necessary stuff for programming an ESP8266 using the arduino IDE?