Ethernet.ping() deprecated? (Argon)

I’m attempting to try to ping a device locally with a known IP address, prior to attempting to open a TCP Socket (intent is to avoid blocking if the device is not active); I’m using ethernet for communication (rather than wifi)
I can see compiler warnings regarding that ping functions are deprecated, and to use WiFi.ping() instead. I expect that this is going to fail when connecting via ethernet; is that correct?

It’s not possible to do an ICMP ping on the Ethernet interface. Actually, WiFi.ping() isn’t supported on the Argon, either.

To get around the blocking issue I would do the TCP client connect from a worker thread.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.