Test NTP Server
# Test NTP Server
Path:
/api/ntptest?ntpServer=*
Method: POST
Content-type: text/plain
API Description: This can be used to test if the NTP server is available.
Request Example http://192.168.42.129/api/ntptest?ntpServer=ntp1.aliyun.com
Response
Name | Type | Example | Description |
---|---|---|---|
ntp.timestamp.now | long | -1 | Timestamp obtained by NTP server. -1: no access. |
ntp.date.now | String | 0 | Formatted time obtained by NTP server. 0000-00-00 00:00:00 : no access. |
Response Example
{
"ntp.timestamp.now": -1,
"ntp.date.now": "0000-00-00 00:00:00"
}