A library for interacting with a network time server
Switch branches/tags
Nothing to show
Clone or download
Dallas Edwards
Dallas Edwards Updating readme file
Latest commit 94759d9 May 10, 2013
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Modifying .nuspec to include correct libraries May 7, 2013
.gitattributes Adding solution and project files Apr 30, 2013
.gitignore Adding solution and project files Apr 30, 2013
LICENSE.md Adding solution and project files Apr 30, 2013
README.md Updating readme file May 11, 2013

README.md

#Netduino NTP Client A library for interacting with a network time server

##Download You can download the latest version of this library on NuGet. To install netduino-ntp-client, run the following command from the package manager console:

PM> Install-Package AngrySquirrel.Netduino.NtpClient

More information about NuGet package is avaliable at https://nuget.org/packages/AngrySquirrel.Netduino.NtpClient/.

##Using the Library Using the client is easy! If you simply want to set the time on your Netduino, this is all you need:

var coordinatedUniversalTime = NtpClient.GetDateTime();
var localTime = coordinatedUniversalTime.AddHours(-4); // Convert from UTC to your local time
Utility.SetLocalTime(localTime);

If you want more control, you can build your own NTP request and examine the response using the Send(NtpPacket, string, int) method.