getTime.lua
[INDEX]

ABSTRACT

Get date/time consigurations of device

ARGUMENTS

HTTP Arguments submit: GET; POST

Test this API over HTTP - (URL):

NONE

RETURNS

Return a JSON style result. The JSON format is:

{
/*OBJECT*/

"Result":
NUMBER

200 means OK, other error code meanings are similar to HTTP Response.

"Status":
"STRING"

Status message. Responsing result status of API executive, if there errors, it will describe reasons.

"Data": {
/*OBJECT*/

"LocalTime":
"STRING"

Format: yyyy-mm-dd hh:nn:ss

Local time on device

"UTCTime":
"STRING"

Format: yyyy-mm-dd hh:nn:ss

UTC time on device

"NTPEnable":
INTEGER

0|1, NTP synchronization enabling. 0 means disable, 1 means enable

"NTPServers":
"STRING"

NTP servers address list, separate each address by SPACE.

"NTPSync":
INTEGER

0|1, return to current NTP synchronization status. 0 is not synchronized, 1 is synchronized.

}
}

OTHER NOTES

Device HTTP API, v1.0