Photon2 and WiFi.ping

I was hoping to use WiFi.ping in a Photon2 development I am working on, but I've just seen in the help file that it is not available:

WiFi.ping() is only available on the Photon and P1.
It is not available on the P2, Photon 2, or Argon.

Can anyone suggest an alternative way this can be done on the Photon2 please?

There is no way to do an ICMP ping on Gen 3 and later devices.

You can attempt to connect to a server on the network using TCPClient, or if you have a server that supports UDP echo, you can send a UDP packet to it and get a response back.

1 Like