I'm trying to use the example sketch TimeNTP that comes with Timer.h, but I get this error when I compile:
n file included from TimeNTP.cpp:10:
/Volumes/srgshare/Arduino Sketches/libraries/UDP/UdpBytewise.h:70: error: conflicting return type specified for 'virtual void UdpBytewiseClass::write(uint8_t)'
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Print.h:48: error: overriding 'virtual size_t Print::write(uint8_t)'
I've attached the two files TimeNTP.ino and Time.h that are part of the example.
I'm trying to use the example sketch TimeNTP that comes with Timer.h, but I get this error when I compile:
So, why don't you fix it? The compiler is telling you exactly which file contains the error, and exactly where in the file the error is, and exactly what the error is. Fix the offending line.
PaulS:
Open UdpBytewise.h in your favorite text editor.
Go to line 70.
Change void to size_t.
Save the change.
That solved the error, but now I get a bunch of errors in w5100.h. A little google searching found this NTP code which I'm going to try instead. It compiles fine, I just haven't tested it yet.