zyphlar/DaisyShift

error during compiling code

Opened this issue · 1 comments

Hardware: Arduino UNO rev3. + Ethernet Shield.
OS: Fedora 17 x64
IDE: Arduino IDE 1.0.1

sketch_nov09a.cpp:47:25: error: no matching function for call to 'Client::Client(byte [4], int)'
sketch_nov09a.cpp:47:25: note: candidates are:
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:7:7: note: Client::Client()
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:7:7: note: candidate expects 0 arguments, 2 provided
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:7:7: note: Client::Client(const Client&)
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:7:7: note: candidate expects 1 argument, 2 provided
sketch_nov09a.cpp:47:8: error: cannot declare variable 'client' to be of abstract type 'Client'
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:7:7: note: because the following virtual functions are pure within 'Client':
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:12:18: note: virtual size_t Client::write(uint8_t)
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:13:18: note: virtual size_t Client::write(const uint8_t_, size_t)
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:14:15: note: virtual int Client::available()
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:15:15: note: virtual int Client::read()
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:17:15: note: virtual int Client::peek()
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:18:16: note: virtual void Client::flush()
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:10:15: note: virtual int Client::connect(IPAddress, uint16_t)
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:11:15: note: virtual int Client::connect(const char_, uint16_t)
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:16:15: note: virtual int Client::read(uint8_t_, size_t)
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:19:16: note: virtual void Client::stop()
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:20:19: note: virtual uint8_t Client::connected()
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:21:11: note: virtual Client::operator bool()
sketch_nov09a.cpp: In function 'void loop()':
sketch_nov09a.cpp:159:24: error: no matching function for call to 'Client::connect()'
sketch_nov09a.cpp:159:24: note: candidates are:
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:10:15: note: virtual int Client::connect(IPAddress, uint16_t)
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:10:15: note: candidate expects 2 arguments, 0 provided
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:11:15: note: virtual int Client::connect(const char_, uint16_t)
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:11:15: note: candidate expects 2 arguments, 0 provided

Thanks, my code has not been updated yet to support Arduino 1.0. You'll need to rename Client to EthernetClient, update the ip[] settings to use IPAddress, etc. You can use this as an example: https://github.com/arduino/Arduino/blob/master/libraries/Ethernet/examples/WebClient/WebClient.ino

If you get it working, please send it over so I can update the code for everyone else.