Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nanoFramework.Networking.Sntp/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

////////////////////////////////////////////////////////////////
// update this whenever the native assembly signature changes //
[assembly: AssemblyNativeVersion("100.0.4.4")]
[assembly: AssemblyNativeVersion("100.0.5.0")]
////////////////////////////////////////////////////////////////

// Setting ComVisible to false makes the types in this assembly not visible
Expand Down
38 changes: 37 additions & 1 deletion nanoFramework.Networking.Sntp/Sntp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace nanoFramework.Networking
/// <remarks>
/// This class is specific to .NET nanoFramework.
/// </remarks>
public class Sntp
public static class Sntp
{
/// <summary>
/// Starts the SNTP client.
Expand Down Expand Up @@ -88,5 +88,41 @@ public static extern string Server2
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}

/// <summary>
/// Gets or Sets the update interval of the SNTP client (in milliseconds) from when the service was started.
/// </summary>
public static extern int UpdateInterval
{
[MethodImpl(MethodImplOptions.InternalCall)]
get;

[MethodImpl(MethodImplOptions.InternalCall)]
set;
}

/// <summary>
/// Gets or Sets the Startup delay of the SNTP client (in milliseconds) when the service is started.
/// </summary>
public static extern int StartupDelay
{
[MethodImpl(MethodImplOptions.InternalCall)]
get;

[MethodImpl(MethodImplOptions.InternalCall)]
set;
}

/// <summary>
/// Gets or Sets the Retry period (in milliseconds) the SNTP client will use.
/// </summary>
public static extern int RetryPeriod
{
[MethodImpl(MethodImplOptions.InternalCall)]
get;

[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
}
}