The Sntp Module is used to synchronize the device clock with a network SNTP server.
|sntp (Module) <META> Syntax|
<META HTTP-Equiv="SNTP" content="[parameter]">
|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:|
|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'|
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|
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.
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.
|RhoElements Version||1.0.0 or above|
|Supported Devices||All supported devices except: Enterprise Tablet.|
|Persistence||Persistent - Changes to this module will persist when navigating to a new page.|
The following example sets the device time from a network time server:
<META HTTP-Equiv="SNTP" Content="serverIp:188.8.131.52">