Skip to content

edwardsdl/netduino-ntp-client

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 

#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.

About

A library for interacting with a network time server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages