Hi
I tried version 2 and the development version.
I imported the library, opened up the examples .ino file.
I'm unable to get this to work.
The exception states the following :
C:\Users\Christophe\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp: In member function 'void ICMPEcho::serialize(uint8_t*) const':
C:\Users\Christophe\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:71: error: 'htons' was not declared in this scope
C:\Users\Christophe\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:74: error: 'htonl' was not declared in this scope
C:\Users\Christophe\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp: In member function 'void ICMPEcho::deserialize(const uint8_t*)':
C:\Users\Christophe\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:84: error: 'ntohs' was not declared in this scope
C:\Users\Christophe\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:87: error: 'ntohl' was not declared in this scope
C:\Users\Christophe\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp: In member function 'void ICMPPing::receiveEchoReply(const ICMPEcho&, ICMPEchoReply&)':
C:\Users\Christophe\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:173: error: invalid conversion from 'uint8_t*' to 'uint16_t'
C:\Users\Christophe\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:173: error: initializing argument 2 of 'void W5100Class::read_data(SOCKET, uint16_t, volatile uint8_t*, uint16_t)'
C:\Users\Christophe\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:181: error: invalid conversion from 'uint8_t*' to 'uint16_t'
C:\Users\Christophe\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:181: error: initializing argument 2 of 'void W5100Class::read_data(SOCKET, uint16_t, volatile uint8_t*, uint16_t)'
Is there anyone who has battled this problem aswel or has a solution to it?
Any help is greatly appreciated!
Grt