Arduino: ESP8266WiFi compile problem

Created on 2 Jun 2015  路  1Comment  路  Source: esp8266/Arduino

Many examples do not work,
i'm on Windows and if try to compile NTPClient.ino all the IDE hang (installed by Board Manager)

after many try i found that the include

include

create rpoblem whit the original #include of the WiFi Arduino Directory, instead we need the #include on C:\Users\win7\AppData\Roamingarduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\libraries\ESP8266WiFi\src\WiFiUdp.h

I tried to Rename it in ESP8266WiFiUdp and it work

In the same dire we have some name renamed, ESP8266WiFi.h because it is a WiFi.h modification of the original present in the Arduino library folder.

It is better change all this name in this directory ?

Most helpful comment

Make sure you place #include <ESP8266WiFi.h> before any other includes from this library, like
#include <WiFiUDP.h>.

>All comments

Make sure you place #include <ESP8266WiFi.h> before any other includes from this library, like
#include <WiFiUDP.h>.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mechanic98 picture mechanic98  路  3Comments

hulkco picture hulkco  路  3Comments

Geend picture Geend  路  3Comments

Khorne13 picture Khorne13  路  3Comments

Marcelphilippeandrade picture Marcelphilippeandrade  路  3Comments