Here is an example sketch that shows how to use PubSubClient on ESP8266:
https://gist.github.com/igrr/7f7e7973366fc01d6393
Explore... Chat... Share...
Moderator: igrr
Arduino: 1.6.1 (Windows 8.1), Board: "Generic ESP8266 board"
[i]esp8266_pubsubclient.ino:1:26: fatal error: PubSubClient.h: No such file or directory
compilation terminated.
Error compiling.
Arduino: 1.6.1 (Windows 8.1), Board: "Generic ESP8266 board"
Build options changed, rebuilding all
Using library ESP8266WiFi in folder: D:\ESP8266\tools-utilites\arduino-1.6.1-windows\arduino-1.6.1\hardware\esp8266com\esp8266\libraries\ESP8266WiFi
D:\ESP8266\tools-utilites\arduino-1.6.1-windows\arduino-1.6.1/hardware/tools/esp8266/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -ID:\ESP8266\tools-utilites\arduino-1.6.1-windows\arduino-1.6.1/hardware/tools/esp8266/sdk//include -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -std=c++11 -MMD -DF_CPU=80000000L -DARDUINO=10601 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -ID:\ESP8266\tools-utilites\arduino-1.6.1-windows\arduino-1.6.1\hardware\esp8266com\esp8266\cores\esp8266 -ID:\ESP8266\tools-utilites\arduino-1.6.1-windows\arduino-1.6.1\hardware\esp8266com\esp8266\variants\esp01 -ID:\ESP8266\tools-utilites\arduino-1.6.1-windows\arduino-1.6.1\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src C:\Users\Michael\AppData\Local\Temp\build7464644365248102153.tmp\esp8266_pubsubclient.cpp -o C:\Users\Michael\AppData\Local\Temp\build7464644365248102153.tmp\esp8266_pubsubclient.cpp.o
esp8266_pubsubclient.ino:1:26: fatal error: PubSubClient.h: No such file or directory
compilation terminated.
Error compiling.
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[…]