UpdateNow Method (Byte[], UInt32)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Manually updates the system time value from the specified server.

Namespace:  Microsoft.SPOT.Time
Assembly:  Microsoft.SPOT.Time (in Microsoft.SPOT.Time.dll)

Syntax

'Declaration
Public Shared Function UpdateNow ( _
    serverAddress As Byte(), _
    tolerance As UInteger _
) As TimeServiceStatus
public static TimeServiceStatus UpdateNow(
    byte[] serverAddress,
    uint tolerance
)
public:
static TimeServiceStatus^ UpdateNow(
    array<unsigned char>^ serverAddress, 
    unsigned int tolerance
)
static member UpdateNow : 
        serverAddress:byte[] * 
        tolerance:uint32 -> TimeServiceStatus 
public static function UpdateNow(
    serverAddress : byte[], 
    tolerance : uint
) : TimeServiceStatus

Parameters

  • serverAddress
    Type: array<System. . :: . .Byte> [] () [] []
    The address of the server to get the system time from.
  • tolerance
    Type: System. . :: . .UInt32
    The maximum allowable difference between the system time and the server time before the time is re-synchronized, in milliseconds.

Return Value

Type: Microsoft.SPOT.Time. . :: . .TimeServiceStatus
The status of the time service.

Remarks

This method can be called while also using a scheduled time service.

.NET Framework Security

See Also

Reference

TimeService Class

UpdateNow Overload

Microsoft.SPOT.Time Namespace