Hallo,
ich habe Probleme mit der UDP Libary und zwar wollte ich das Udp NTP Beispiel ausbrobieren.
For Arduino 0022, see the built in Udp NTP example, and also see
http://arduino.cc/en/Tutorial/UdpNtpClient
Aber beim Compalieren bekomme ich folgende Fehler. Hat jemand ne Idee was ich falsch mache?
/bin/arduino-0022/libraries/Ethernet/UdpRaw.cpp:30:19: error: types.h: No such file or directory
In file included from /bin/arduino-0022/libraries/spi/SPI.h:15,
from /bin/arduino-0022/libraries/Ethernet/w5100.h:14,
from /bin/arduino-0022/libraries/Ethernet/UdpRaw.cpp:31:
/bin/arduino-0022/hardware/arduino/cores/arduino/WProgram.h:18: error: declaration of C function 'uint16_t makeWord(byte, byte)' conflicts with
/bin/arduino-0022/hardware/arduino/cores/arduino/WProgram.h:17: error: previous declaration 'uint16_t makeWord(uint16_t)' here
/bin/arduino-0022/hardware/arduino/cores/arduino/WProgram.h:28: error: declaration of C function 'long int random(long int)' conflicts with
/opt/cross/avr/lib/gcc/avr/4.3.3/../../../../avr/include/stdlib.h:504: error: previous declaration 'long int random()' here
/bin/arduino-0022/hardware/arduino/cores/arduino/WProgram.h:29: error: declaration of C function 'long int random(long int, long int)' conflicts with
/bin/arduino-0022/hardware/arduino/cores/arduino/WProgram.h:28: error: previous declaration 'long int random(long int)' here
/bin/arduino-0022/libraries/Ethernet/UdpRaw.cpp: In member function 'void UdpRawClass::begin(uint16_t)':
/bin/arduino-0022/libraries/Ethernet/UdpRaw.cpp:42: error: 'Sn_MR_UDP' was not declared in this scope
/bin/arduino-0022/libraries/Ethernet/UdpRaw.cpp: In member function 'int UdpRawClass::available()':
/bin/arduino-0022/libraries/Ethernet/UdpRaw.cpp:65: error: 'getSn_RX_RSR' was not declared in this scope
Gruß
Snoops


0 Antworten auf “Probleme mit UDP Libary und NTP Beispiel”