ledControl.lua
[INDEX]

ABSTRACT

Set the LEDs status

NOTE: To set the LEDs status, you must enable the LEDs "user control" behavior by call setLEDUserControl.lua.

ARGUMENTS

HTTP Arguments submit: GET; POST

Test this API over HTTP - (URL):

ID
STRING (MUST)

Specify the LED ID, declared as below:

led1

(From left) The 1st LED

led2

(From left) The 2nd LED

led3

(From left) The 3rd LED

led4

(From left) The 4th LED

Test value:

Status
STRING (MUST)

Set the LED status, declared as below:

OFF

Off

ON

(Green) On, this is similar to GREEN.ON

BLINK

(Green) Blink, this is similar to GREEN.BLINK

GREEN.ON

Green on

GREEN.BLINK

Green blink

RED.ON

Red on

RED.BLINK

Red blink

YELLOW.ON

Yellow on

YELLOW.BLINK

Yellow blink

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