Enable Getting Ntp From Dhcp Server; Query The Active Ntp Server; Set Ntp Server; Synchronize With The Ntp Server - Lightware RAP-B511-EU User Manual

Room automation panel
Table of Contents

Advertisement

 
7. LW3 Programmers' Reference
7.6.2. Enable Getting NTP from DHCP server
When the DHCP server assigns an IP address to the device, there is an option to request an NTP time
information. When the RAP-B511 connected to the internet, the NTP time is updated repeatedly.
Command and Response
SET·/SYS/MB/NTP.NtpServerFromDhcp=<enable_ntp_dhcp>
ç
pw·/SYS/MB/NTP.NtpServerFromDhcp=<enable_ntp_dhcp>
æ
Parameters
<enable_ntp_dhcp>
true: Enable getting NTP from DHCP server
false: Disable getting NTP from DHCP server
Example
ç SET /SYS/MB/NTP.NtpServerFromDhcp=true
æ pw /SYS/MB/NTP.NtpServerFromDhcp=true
7.6.3. Query the Active NTP Server
Command and Response
ç GET·/SYS/MB/NTP.ActiveNtpServer
pr·/SYS/MB/NTP.ActiveNtpServer=<server_address>
æ
Parameters
<server_address>
NTP server address (IP address or URL)
Example
ç GET /SYS/MB/NTP.ActiveNtpServer
æ pr /SYS/MB/NTP.ActiveNtpServer=pool.ntp.org
7.6.4. Set NTP server
Command and Response
SET·/SYS/MB/NTP.NtpServer=<server_address>
ç
pw·/SYS/MB/NTP.NtpServer=<server_address>
æ
Parameters
<server_address>
NTP server address (IP address or URL)
Example
ç SET /SYS/MB/NTP.NtpServer=pool.ntp.org
æ pw /SYS/MB/NTP.NtpServer=pool.ntp.org
RAP-B511 series – User's Manual
7.6.5. Synchronize with the NTP server
Command and Response
ç CALL·/SYS/MB/NTP:updateTime()
æ mO·/SYS/MB/NTP:updateTime
Example
ç CALL /SYS/MB/NTP:updateTime()
æ mO /SYS/MB/NTP:updateTime
7.6.6. Query the Last Synchronization
Command and Response
ç GET·/SYS/MB/RTC.LastUpdate
æ
Parameters
<last_sync>
Example
ç GET /SYS/MB/RTC.LastUpdate
æ pr /SYS/MB/RTC.LastUpdate=2019-04-30T16:36:41
7.6.7. Query the Universal Time Coordinated Time (UTC)
Command and Response
ç GET·/SYS/MB/RTC.UtcTime
æ
Parameters
<utcTime>
Example
ç GET /SYS/MB/RTC.UtcTime
æ pr /SYS/MB/RTC.UtcTime=2019-05-16T10:41:38
Applied firmware package: v1.1.0b3b3 | LDC software: v2.5.1b5
pr·/SYS/MB/RTC.LastUpdate=<last_sync>
Displays the last synchronization time.
pr·/SYS/MB/RTC.UtcTime=<utcTime>
Displays the date and the UTC time.
72

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rap-b511-kRap-b511-wRap-b511-sRap-b511-ukRap-b511-us

Table of Contents