smartDEN Opener
User Manual
24 Apr 2018
- 104 -
More commands separated by '
&
' combined in one request. As seen
MQTT_COMMAND
is the
keyword of the request. Next is '
?
' sign which notes that the commands start from this symbol.
Each command is separated by '
&
' sign. At end of the request '
;
' sign should be applied. If this
principle is not observer a "Bad Arguments!" message will be received.
Maximum request length is 100 symbols starting from MQTT_COMMAND and ending
with last ";".
12.2.1.
Getting current state of smartDEN Opener
Getting the current state as each other command should be posted in
Admin Reading Topic
.
MQTT_COMMAND?GETSTATUS;
When command is sent, response will be received in admin writing topic. The response of all
successful commands is the same and is given on
Figure 12.2
.
12.2.2.
Relays control
MQTT_COMMAND?R1=1;
MQTT_COMMAND?R2=0;
Possible values for R1 and R2:
0
- turn off;
1
- turn on.
12.2.3.
Control relays via single command
MQTT_COMMAND?R=3;
Possible values for R are shown in table below:
Table 12.1.
Relays control table
R
Relay 1
Relay 2
R=0
OFF
OFF
R=1
ON
OFF
R=2
OFF
ON
R=3
ON
ON
12.2.4.
Control Main Controlled Device
MQTT_COMMAND?MS=2;
Possible values for MS are 0 (CLOSE), 1 (OPEN) and 2 (STOP).
12.2.5.
Control relays and Main Controlled Device via single command