Unable tp ping remote host using ESP32 ping
Posted: Sun Oct 09, 2022 12:41 am
Hi all,
I am following an example for this website:
https://techtutorialsx.com/2019/10/05/e ... mote-host/
I am able to successfully connect to my home WIFI network, but ping method just doesn't work and returns an error message "Ping failed" all the time.
Would anyone know what could be the problem or how can I go about troubleshooting this problem?
Thanks in advance!
I am following an example for this website:
https://techtutorialsx.com/2019/10/05/e ... mote-host/
I am able to successfully connect to my home WIFI network, but ping method just doesn't work and returns an error message "Ping failed" all the time.
Code: Select all
bool success = Ping.ping("www.google.com", 3);
if(!success){
Serial.println("Ping failed");
return;
}
Serial.println("Ping succesful.");
Thanks in advance!