dancol90 / ESP8266Ping

Ping library for ESP8266 Arduino core
GNU Lesser General Public License v2.1
265 stars 136 forks source link

Ping fails #5

Closed Jimbobnz closed 8 years ago

Jimbobnz commented 8 years ago

Every ip address and host names are failing to ping. the Ping.averageTime() returns zero.

output from serial

Connecting to WiFi .............. WiFi connected with ip 192.168.4.64 GATEWAY: 192.168.4.254 Pinging ip 192.168.4.254 Error :( TIME: 0

dancol90 commented 8 years ago

Hi!

Are you using Arduino IDE or PlatformIO? Which version? Have you updated the ESP8266 package to the latest version?

Jimbobnz commented 8 years ago

I'm using Arduino 1.6.11 on Windows 10. ESP8266 Arduino core version 2.2.0. NodeMCU ESP-12E

dancol90 commented 8 years ago

I've tried the HostPing example with IDE 1.6.12 and core 2.2.0 and it works. Maybe is a network issue. Can the ESP8266 reach the internet or any local server (with HTTP request, for example)?

Jimbobnz commented 8 years ago

Okay, I sort of isolated the problem with no real solution. The issue a combination of my ESP-12E and my Wireless Access Point. It's able to connect okay and get a IP address but it is unable to do any TCP or UDP communication. I am able to ping the ESP-12E from my PC but that about it. However if I change Access Points on the same LAN it works. Bizarre.

Since this is not a problem related to your code you can close this case. Thanks.