Hello everyone, I just bought the Ethernet Shield. I tried to load any sample from the library Ethernet.h But when I verify that I get out of these errors:
/Users/Alberto/Documents/Arduino/libraries/Ethernet/Ethernet.cpp: In member function 'void EthernetClass::begin(uint8_t*, IPAddress, IPAddress, IPAddress, IPAddress)':
/Users/Alberto/Documents/Arduino/libraries/Ethernet/Ethernet.cpp:65:39: error: no matching function for call to 'W5100Class::setIPAddress(IPAddress::&)'
W5100.setIPAddress(local_ip._address);
^
/Users/Alberto/Documents/Arduino/libraries/Ethernet/Ethernet.cpp:65:39: note: candidate is:
In file included from /Users/Alberto/Documents/Arduino/libraries/Ethernet/Ethernet.cpp:1:0:
/Users/Alberto/Documents/Arduino/libraries/Ethernet/w5100.h:392:6: note: void W5100Class::setIPAddress(uint8_t*)
void W5100Class::setIPAddress(uint8_t _addr) {
^
/Users/Alberto/Documents/Arduino/libraries/Ethernet/w5100.h:392:6: note: no known conversion for argument 1 from 'IPAddress::' to 'uint8_t {aka unsigned char*}'
/Users/Alberto/Documents/Arduino/libraries/Ethernet/Ethernet.cpp:66:38: error: no matching function for call to 'W5100Class::setGatewayIp(IPAddress::&)'
W5100.setGatewayIp(gateway._address);
^
/Users/Alberto/Documents/Arduino/libraries/Ethernet/Ethernet.cpp:66:38: note: candidate is:
In file included from /Users/Alberto/Documents/Arduino/libraries/Ethernet/Ethernet.cpp:1:0:
/Users/Alberto/Documents/Arduino/libraries/Ethernet/w5100.h:368:6: note: void W5100Class::setGatewayIp(uint8_t*)
void W5100Class::setGatewayIp(uint8_t _addr) {
^
/Users/Alberto/Documents/Arduino/libraries/Ethernet/w5100.h:368:6: note: no known conversion for argument 1 from 'IPAddress::' to 'uint8_t {aka unsigned char*}'
/Users/Alberto/Documents/Arduino/libraries/Ethernet/Ethernet.cpp:67:38: error: no matching function for call to 'W5100Class::setSubnetMask(IPAddress::&)'
W5100.setSubnetMask(subnet._address);
^
/Users/Alberto/Documents/Arduino/libraries/Ethernet/Ethernet.cpp:67:38: note: candidate is:
In file included from /Users/Alberto/Documents/Arduino/libraries/Ethernet/Ethernet.cpp:1:0:
/Users/Alberto/Documents/Arduino/libraries/Ethernet/w5100.h:376:6: note: void W5100Class::setSubnetMask(uint8_t*)
void W5100Class::setSubnetMask(uint8_t _addr) {
^
/Users/Alberto/Documents/Arduino/libraries/Ethernet/w5100.h:376:6: note: no known conversion for argument 1 from 'IPAddress::' to 'uint8_t {aka unsigned char*}'
How can I fix?
Thank you.