Class SntpClient
SNTP client class with all methods to perform SNTP requests.
Inheritance
System.Object
SntpClient
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Eclo.nF.SIM800H
Assembly: cs.temp.dll.dll
Syntax
public class SntpClient : IDisposable
Methods
Dispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Finalize()
Declaration
protected void Finalize()
SyncNetworkTimeAsync(String, TimeSpan, AsyncCallback, Object)
Starts an asynchronous operation to synchronize network time with SNTP server. Requires GPRS bearer profile 1 opened.
Declaration
public SyncNetworkTimeAsyncResult SyncNetworkTimeAsync(string sntpServer, TimeSpan utcOffset, AsyncCallback asyncCallback = null, object asyncState = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | sntpServer | URL or IP address of the NTP server |
System.TimeSpan | utcOffset | UTC offset of local time zone. |
System.AsyncCallback | asyncCallback | The callback to be invoked upon completion, optional |
System.Object | asyncState | The state object to be stored against the OpenGprsContextAsyncResult, optional |
Returns
Type | Description |
---|---|
SyncNetworkTimeAsyncResult | The IMEIAsyncResult |
Events
SntpReplyReceived
Event raised when the module receives the reply of a SNTP sync request.
Declaration
public event SntpClient.SntpReplyReceivedHandler SntpReplyReceived
Event Type
Type | Description |
---|---|
SntpClient.SntpReplyReceivedHandler |
Implements
System.IDisposable