ICMP ping library not working with Teensy

Status
Not open for further replies.

MrGlasspoole

Well-known member
I'm using the ICMP ping library on the Arduinos with W5100:
https://github.com/BlakeFoster/Arduino-Ping

It's not working on the Teensy with Pauls ethernet lib - it does not compile and if i don't know if it would work with the W5500.
First it does not find "utility/w5100.h" because Pauls lib does not have that sub folder.
After removing "utility/" there are a lot of errors:
Code:
In file included from C:\Programs (zip)\Arduino\arduino-1.8.0\portable\sketchbook\libraries\icmp_ping\ICMPPing.cpp:10:0:

C:\Programs (zip)\Arduino\arduino-1.8.0\portable\sketchbook\libraries\icmp_ping\ICMPPing.h: In constructor 'ICMPEcho::ICMPEcho(uint8_t, uint16_t, uint16_t, uint8_t*)':

C:\Programs (zip)\Arduino\arduino-1.8.0\portable\sketchbook\libraries\icmp_ping\ICMPPing.h:92:14: warning: 'ICMPEcho::seq' will be initialized after [-Wreorder]

     uint16_t seq;

              ^

C:\Programs (zip)\Arduino\arduino-1.8.0\portable\sketchbook\libraries\icmp_ping\ICMPPing.h:91:14: warning:   'uint16_t ICMPEcho::id' [-Wreorder]

     uint16_t id;

              ^

C:\Programs (zip)\Arduino\arduino-1.8.0\portable\sketchbook\libraries\icmp_ping\ICMPPing.cpp:55:1: warning:   when initialized here [-Wreorder]

 ICMPEcho::ICMPEcho(uint8_t type, uint16_t _id, uint16_t _seq, uint8_t * _payload)

 ^

In file included from C:\Programs (zip)\Arduino\arduino-1.8.0\portable\sketchbook\libraries\icmp_ping\ICMPPing.cpp:10:0:

C:\Programs (zip)\Arduino\arduino-1.8.0\portable\sketchbook\libraries\icmp_ping\ICMPPing.h: In constructor 'ICMPEcho::ICMPEcho()':

C:\Programs (zip)\Arduino\arduino-1.8.0\portable\sketchbook\libraries\icmp_ping\ICMPPing.h:92:14: warning: 'ICMPEcho::seq' will be initialized after [-Wreorder]

     uint16_t seq;

              ^

C:\Programs (zip)\Arduino\arduino-1.8.0\portable\sketchbook\libraries\icmp_ping\ICMPPing.h:91:14: warning:   'uint16_t ICMPEcho::id' [-Wreorder]

     uint16_t id;

              ^

C:\Programs (zip)\Arduino\arduino-1.8.0\portable\sketchbook\libraries\icmp_ping\ICMPPing.cpp:64:1: warning:   when initialized here [-Wreorder]

 ICMPEcho::ICMPEcho()

 ^

C:\Programs (zip)\Arduino\arduino-1.8.0\portable\sketchbook\libraries\icmp_ping\ICMPPing.cpp: In member function 'void ICMPPing::operator()(const IPAddress&, int, ICMPEchoReply&)':

C:\Programs (zip)\Arduino\arduino-1.8.0\portable\sketchbook\libraries\icmp_ping\ICMPPing.cpp:148:18: warning: unused variable 'replyAddr' [-Wunused-variable]

             byte replyAddr [4];

                  ^

C:\Programs (zip)\Arduino\arduino-1.8.0\portable\sketchbook\libraries\icmp_ping\ICMPPing.cpp: In member function 'Status ICMPPing::sendEchoRequest(const IPAddress&, const ICMPEcho&)':

C:\Programs (zip)\Arduino\arduino-1.8.0\portable\sketchbook\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:\Programs (zip)\Arduino\arduino-1.8.0\portable\sketchbook\libraries\icmp_ping\ICMPPing.cpp: In member function 'void ICMPPing::receiveEchoReply(const ICMPEcho&, const IPAddress&, ICMPEchoReply&)':

C:\Programs (zip)\Arduino\arduino-1.8.0\portable\sketchbook\libraries\icmp_ping\ICMPPing.cpp:207:19: error: 'class W5100Class' has no member named 'getRXReceivedSize'

         if (W5100.getRXReceivedSize(_socket) < 1)

                   ^

C:\Programs (zip)\Arduino\arduino-1.8.0\portable\sketchbook\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:\Programs (zip)\Arduino\arduino-1.8.0\portable\sketchbook\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);

         ^

Multiple libraries were found for "Ethernet.h"
 Used: C:\Programs (zip)\Arduino\arduino-1.8.0\portable\sketchbook\libraries\Ethernet
 Not used: C:\Programs (zip)\Arduino\arduino-1.8.0\hardware\teensy\avr\libraries\Ethernet
 Not used: C:\Programs (zip)\Arduino\arduino-1.8.0\libraries\Ethernet
Error compiling for board Teensy 3.5.
 
Status
Not open for further replies.
Back
Top