mmmmm. i have tried all of the Arduino-Ping from git hub and none of the examples are functional to test the code following their examples. it says it errors when verifying the code.
from what i have read i would have to recode your example code into arduino to function as its written in a different language. arduino has small differences from c++ i assume.
Arduino: 1.8.8 (Windows 10), Board: “Arduino Due (Programming Port)”
C:\Users\Carpenter\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp: In member function ‘Status ICMPPing::sendEchoRequest(const IPAddress&, const ICMPEcho&)’:
C:\Users\Carpenter\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:184:11: error: ‘class W5100Class’ has no member named ‘send_data_processing’
W5100.send_data_processing(_socket, serialized, sizeof(ICMPEcho));
^
C:\Users\Carpenter\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp: In member function ‘void ICMPPing::receiveEchoReply(const ICMPEcho&, const IPAddress&, ICMPEchoReply&)’:
C:\Users\Carpenter\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:207:19: error: ‘class W5100Class’ has no member named ‘getRXReceivedSize’
if (W5100.getRXReceivedSize(_socket) < 1)
^
C:\Users\Carpenter\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:219:9: error: ‘class W5100Class’ has no member named ‘read_data’
W5100.read_data(_socket, (uint16_t) buffer, ipHeader, sizeof(ipHeader));
^
C:\Users\Carpenter\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:229:9: error: ‘class W5100Class’ has no member named ‘read_data’
W5100.read_data(_socket, (uint16_t) buffer, serialized, dataLen);
^
exit status 1
Error compiling for board Arduino Due (Programming Port).
This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.