BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Get ping value

There is any function to get manual the ping to server value ??

image

It depends on the hardware you’re running and the programming language you’re using, but you’ll probably need to install a ping library.

Pete.

Maybe an API call from blynk server ???

pingResult = WiFi.ping(hostName);

  if (pingResult >= 0) {
    Serial.print("SUCCESS! RTT = ");
    Serial.print(pingResult);
    Serial.println(" ms");
  } else {
    Serial.print("FAILED! Error code: ");
    Serial.println(pingResult);
  }

Thanks for your help but not working :

'class WiFiClass' has no member named 'ping'

Maybe due to your library
Try this library