Missing WiFi.ping() function

I would like to use the WiFi.ping() function described here.

It seems the Seeed_Arduino_atWiFi library doesn’t provide it.

For IoT projects, it is very important to be able to check whether the server is alive and responding.

Do you plan to implement it?

I opened ticket #4 at the GitHub repository.

Thank you!

Thank you for your feedback.We will improve it as soon as possible.

Hi, is it available now?

I guess there are only hardware people here ;.

I found this example - seeed_wio_terminal\Seeed Arduino rpcWiFi\examples\wifi_ping
and it worked for me…

bool check_ping() {

bool ret_ping = Ping.ping(remotePostIp);
if(ret_ping) {
Serial.print(“Pinged “);
Serial.println(remotePostIp);
} else {
Serial.print(remotePostIp);
Serial.println(” Ping fail”);
}
return ret_ping;
}

with an output

60 bytes from 10.66.66.185: icmp_seq=1 time=8.000 ms
60 bytes from 10.66.66.185: icmp_seq=2 time=8.000 ms
60 bytes from 10.66.66.185: icmp_seq=3 time=8.000 ms
60 bytes from 10.66.66.185: icmp_seq=4 time=8.000 ms
60 bytes from 10.66.66.185: icmp_seq=5 time=8.000 ms
5 packets transmitted, 5 packets received, 0.0% packet loss
Pinged 10.66.66.185