I am trying to build a project for an ESP8266 board (D1 Mini Lite) and am having a problem with the WiFI library. The sketch I a using to test is below and does nothing really but include the ESP8266WiFi.h file.
I get a series of errors starting with the following. It looks like that Arduino String object is not getting included properly. I have included platformio.ini contents as well. Am I missing something simple here?
In file included from /Users/andrebaskin/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:31:0,
from /Users/andrebaskin/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.cpp:25:
/Users/andrebaskin/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/IPAddress.h:86:31: error: ‘String’ does not name a type
// sketch
#include <Arduino.h>
#include <ESP8266WiFi.h>
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
// platformio.ini
[env:d1_mini_lite]
platform = espressif8266
board = d1_mini_lite
framework = arduino