The attached code works fine when using the Arduino UNO and ESP8266 board attached to it (RX to TX and TX to RX).... Now I am trying to make it work with Wemos D1 board (which doenst use the Arduino but just the ESP8266 module) but I have the following error message when trying to compile the sketch..
Arduino: 1.8.3 (Windows 7), Board: "ESPino (ESP-12 Module), 80 MHz, DIO, 115200, 4M (1M SPIFFS), ck"
Build options changed, rebuilding all
C:\Program Files (x86)\Arduino\libraries\ESP8266HardwareSerial\ESP8266.cpp:22:26: fatal error: avr/pgmspace.h: No such file or directory
exit status 1
Error compiling for board ESPino (ESP-12 Module).
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Code.txt (588 Bytes)