Bob
Bob
Explore... Chat... Share...
Moderator: igrr
ajafferji wrote:Hi, I am trying to compile the example sketch PubSubClient> mqtt_esp8266. My board is the NodeMCU 1.0.
I am however getting the following error. I have tried loads of things (installed new libraries, tried different versions of Arduino 1.6.5, 1.6.6 and today 1.6.7) but I always get the following error.
Arduino: 1.6.7 (Windows 7), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Serial, 115200, 4M (3M SPIFFS)"
Build options changed, rebuilding all
C:\Users\Computer\Documents\Arduino\libraries\PubSubClient\examples\mqtt_esp8266\mqtt_esp8266.ino: In function 'void setup()':
mqtt_esp8266:44: error: 'setup_wifi' was not declared in this scope
setup_wifi();
^
mqtt_esp8266:46: error: 'callback' was not declared in this scope
client.setCallback(callback);
^
exit status 1
'setup_wifi' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
I am not sure what to try next, so any help would be appreciated.
Thanks
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]