WiFi

ping()

WiFi.ping, ping

WiFi.ping() allows you to ping an IP address and returns the number of packets received as an int. It takes two forms:

WiFi.ping(IPAddress remoteIP) takes an IPAddress and pings that address.

WiFi.ping(IPAddress remoteIP, uint8_t nTries) and pings that address a specified number of times.


Note:

WiFi.ping() is only available on the Photon and P1.

It is not available on the P2, Photon 2, or Argon.