Salve a tutti,
ho il seguente problema, sto usando arduino 0022 ho utilizzato il codice dello sketch UdpNtpClient:
riesco ad ottenere l'ora, i minuti e i secondi. Non riesco pero' ad impostare la data (giorno, mese ed anno) nonostante le ricerche fatte.
Come potrei ottenere e stampare la data senza l'utilizzo della libreria UdpBytewse.h, visto che nel seguente link:
http://arduino.cc/playground/Code/Time
riporta questo:
- TimeNTP uses the Arduino Ethernet shield to access time using the internet NTP time service.
The NTP protocol uses UDP and the UdpBytewise library is required, see:
http://bitbucket.org/bjoern/arduino_osc/src/14667490521f/libraries/Ethernet/
Note: This is out of date. For Arduino 0022, see the built in Udp NTP example, and also see http://arduino.cc/en/Tutorial/UdpNtpClient.
Quindi non posso utilizzare il seguente codice:
http://arduino-time.googlecode.com/svn-history/r4/trunk/Examples/TimeNTP/TimeNTP.pde
poiche' ho arduino 0022
Grazie in anticipo.