Sntp Module

The Sntp Module is used to synchronize the device clock with a network SNTP server.

Syntax

sntp (Module) <META> Syntax

<META HTTP-Equiv="SNTP" content="[parameter]">

Sntp JavaScript Object Syntax:
By default the JavaScript Object 'sntp' will exist on the current page and can be used to interact directly with the sntp.
To Set sntp parameters via JavaScript use the following syntax: sntp.parameter = 'value'; remembering to enclose your value in quotes where appropriate.

e.g. sntp.serverIp = 'value';
To set multiple EMML parameters / events on a single line use the following syntax: sntp.setEMML("[Your EMML Tags]");

e.g. sntp.setEMML("serverIp:value");
Sntp Ruby Object Syntax:
By default the Ruby Object 'Sntp' will exist on the current page and can be used to interact directly with the Sntp. All Methods, Parameters and Events are the same as Javascript, however, notice 'Sntp' needs to start with an uppercase letter. Another difference in Ruby is that methods do not end in '()'
To Set Sntp parameters via Ruby use the following syntax: Sntp.parameter = 'value' remembering to enclose your value in quotes where appropriate.

e.g. Sntp.serverIp = 'value'

Parameters

Items listed in this section indicate parameters, or attributes which can be set.

Name Possible Values Description Default Value
serverIp:[Value] Valid IP Address The IP address of the SNTP time server N/A

Remarks

Latency

Once this tag is parsed RhoElements will request the time from the SNTP server immediately, however the clock will not be updated until a response is received. Network latency and connectivity issues can all affect the speed and success with which this tag is actioned.

Proxy Settings

Windows Mobile 5.0 will not allow you to obtain SNTP time when requesting via a proxy server, it is recommended the proxy is bypassed for this to work.

Requirements

RhoElements Version 1.0.0 or above
Supported Devices All supported devices except: Enterprise Tablet.
Minimum Requirements None.
Persistence Persistent - Changes to this module will persist when navigating to a new page.

HTML/Javascript Examples

The following example sets the device time from a network time server:

<META HTTP-Equiv="SNTP" Content="serverIp:132.163.4.102">