07/01/2011http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1291637975#10 shows DST function, to be integrated.
Together with Rodrigo Castro an Arduino 1.0 update was made for - http://www.arduino.cc/playground/Main/DS1307OfTheLogshieldByMeansOfNTP -The code should work under 0.22, 0,23 and 1.0As always comments and remarks are welcome, in this thread.
#if ARDUINO >= 100#include <EthernetUdp.h> // New from IDE 1.0#else#include <UDP.h>#endif
int packetSize = Udp.parsePacket(); //<<<<<<<<<<<<NEW LINE HERE// send an NTP packet to a time serversendNTPpacket(timeServer);...Udp.read(pb, packetSize); // New from IDE 1.0 <<<<<<<<<<<<<MODIFIED LINE
t4 -= (3 * 3600L);
but it is not my timezone,
With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.
Warning: this topic has not been posted in for at least 120 days.Unless you're sure you want to reply, please consider starting a new topic.