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.

Gen 3 Devices:

WiFi.ping() is not available on Gen 3 Wi-Fi devices (Argon).