Section 6
Interfacing – API
Interface API continued
The port expects simple lower-case ASCII messages in the format detailed below;
all_on
Whole garden ON
all_off
Whole garden OFF
area_on
x
Switch ON an
‘
area
’,
zone or scene,
depending on what was stored in the receiver
area_off
x
Switch ON an
‘
area
’,
zone or scene,
depending on what was stored in the receiver
inten_x_d
‘
x
’ =
zone number, output intensity (dim level)
‘
d
’ =
intensity 1
-
10
start
-
show
Start the Light Show running (for colour LEDs)
stop_show
Stop the Light Show running
colour_x_c
‘
x
’ =
zone number,
‘
c
’ =
colour code 1
-
16
NOTES
:
1.
Ensure all messages are terminated with
‘\
r\n
’
character
2.
‘
x
’
is the Zone number (1
-
29) without preceding
‘0’
3.
‘
d
’
is the intensity (dim) level min
‘1’= 10%
to max
‘10’ = 100%
Example
:
Zone 2 ON
“
area_on 2\r\n
”
(note the
‘
space
’
character before the
‘2’)
20