BlakeFoster / Arduino-Ping

ICMP ping library for the Arduino
59 stars 44 forks source link

Error while compiling #17

Open TEAMBTG opened 5 years ago

TEAMBTG commented 5 years ago

Got this error when compiling. I just recently download the master. Thanks

Arduino: 1.8.9 (Windows 10), Board: "Arduino/Genuino Uno"

C:\Users\ABC\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp: In member function 'Status ICMPPing::sendEchoRequest(const IPAddress&, const ICMPEcho&)':

C:\Users\ABC\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\ABC\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp: In member function 'void ICMPPing::receiveEchoReply(const ICMPEcho&, const IPAddress&, ICMPEchoReply&)':

C:\Users\ABC\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:207:19: error: 'class W5100Class' has no member named 'getRXReceivedSize'

         if (W5100.getRXReceivedSize(_socket) < 1)

                   ^

C:\Users\ABC\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\ABC\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/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
fox4ua commented 5 years ago

The same problem (Arduino IDE 1.8.9, W5500) In the new Ethernet library, there are no such functions that are used in this library : (

dmnc-net commented 5 years ago

looks like a duplicate od #13, #15, #16 ... really guys?

andrew-susanto commented 3 years ago

I just create some update on issue #13. You can read the fixes there. I tested on my arduino uno + Ethernet shield W5100.