Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By macfisherman
#21252 Hi,

I have:
Code: Select all#include "ESP8266WiFi.h"
#include <Dns.h>


in my sketch and I get this:

Code: Select allIn file included from /Applications/Arduino.app/Contents/Java/libraries/Ethernet/src/Dhcp.cpp:4:0:
/Applications/Arduino.app/Contents/Java/libraries/Ethernet/src/utility/w5100.h:13:17: fatal error: SPI.h: No such file or directory
 #include <SPI.h>


I'm using 1.6.4-673-g8cd3697 as reported by the board manager, but I think it is actually 1.6.5. I built it from git and ran build_all_dist.bash and build_board_manager_package.sh to install into the IDE.

I'm not sure where to start to fix this. Is anyone else use <Dns.h> successfully?
User avatar
By danbicks
#21277
macfisherman wrote:I found that the WiFi class has a hostByName method. No need for me to include <Dns.h>.

Code: Select allint rc = WiFi.hostByName("www.yahoo.com",  address);


Hi, have you tested this routine? Should address be the IP of yahoo.com?

Dans