I need to ping a remote machine from my ESP32.
I found this library, but it does not work for me. I am using library example SimplePing. Connect to my wifi is ok, but Ping.ping(remote_IP) always returns false. Has anyone tried it?
Thanks for any hep.
Hello, thank you for asking! Unfortunately I’ve never tried anything like that, so I don’t have any examples or feedback about that subject.
Did you try with a different Host? Does it always return false? Does it print any other debugging information in the Arduino IDE Serial Monitor?
Hello, till now no further investigations from me. I tested only mentioned example yet. I was just doing pings to my wifi router and to my other local devices, all without ‘true’ Ping.ping() response. All pings from my local devices to ESP32 were successfull. ESP32 works fine as web server. So the visibility in local lan is not problem.
My question here is due to possible verification of this library by other users, because I did not find any one for ESP32 yet (only for ESP8266).
Thanks for your responding!
Ok! Unfortunately due to the high volume of projects, I can’t test the library right now, but I would probably recommend that you contact the author directly or post a detailed GitHub issue if you encounter any problem: https://github.com/marian-craciunescu/ESP32Ping
Thanks for your time! Regards,
I asked author, he answered me back:
“Sorry, but right now I don’t have an ESP32 to fix the library. They updated the ip module in the esp32-core. Probably some of the function is not working properly. I will try to update as soon as possible.”
But finaly, I had find ping library here that is working fine for me.
I close this question.
Thank you for your support!