setTime.lua
[INDEX]

ABSTRACT

Set date/time and NTP options

ARGUMENTS

HTTP Arguments submit: GET; POST

Test this API over HTTP - (URL):

LocalTime

Optional. Format is "yyyy-mm-dd hh:nn:ss".

Set the local time on device (Note: LocalTime and UTCTime, thoese are two alternatives.)

Test value:

UTCTime

Optional. Format is "yyyy-mm-dd hh:nn:ss".

Set the UTC time on device ( Note:UTCTime and LocalTime, thoese are two alternatives.)

Test value:

NTPEnable
INTEGER

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

Test value:

NTPServers

Optional. NTP servers address list, separate each address by SPACE.

Test value:

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.

}

OTHER NOTES

KILOVIEW Device HTTP API, v1.0