
smartDEN
IP-16R-XX
User Manual
13 Apr 2021
-
58
-
Table 10.32.
Encrypted topics and reply in XML
Topic
Application Message
Description
Admin Read
Topic
MQTT_COMMAND?GETSTATUS;
Get the relays states
MQTT_COMMAND?RSX
i
=
x
;
Turns
relay
(
i
=1
…16)
ON/OFF.
x
: 0 - OFF, 1 - ON,
2
– TOGGLE
MQTT_COMMAND?ALLX=
x
;
Turns all the relays at once.
The most significant bit of
the value specifies the state
of relay 16, and the least
significant bit
– the state of
relay 1.
x
represents the
relays states - from 0 to
65535
MQTT_COMMAND?RNX
i
=
x
;
Generates a positive (ON)
pulse on a single relay
(
i
=1...16).
The
pulse
duration
x
is in ms x 100.
MQTT_COMMAND?RFX
i
=
x
;
Generates a negative (OFF)
pulse on a single relay
(
i
=1...16).
The
pulse
duration
x
is in ms x 100.
MQTT_COMMAND?DONAME
i
=
x
;
Sets the name of a relay
(
i
=1...16). The length of
x
is
1 to 7 symbols.
MQTT_COMMAND?DATE=
x
;
Sets the date,
x
is format
dd/mm/yyyy
MQTT_COMMAND?TIME=
x
;
Sets the time,
x
is format
hh:mm
The below commands in Table 10.33 are published by the MQTT client (Laptop,
smartphone, DAE-aModules) to the
Admin Read Topic
and the
smartDEN IP-16R-
MQ
publishes a reply in JSON format to the
Admin Write Topic
(see
Table 10.33.
Encrypted topics and reply in JSON
Topic
Application Message
Description
Admin Read
Topic
MQTT_COMMAND?GETSTATUS2;
Get the relays states
MQTT_COMMAND?RSJ
i
=
x
;
Turns
relay
(
i
=1
…16)
ON/OFF.
x
: 0 - OFF, 1 - ON,
2
– TOGGLE
MQTT_COMMAND?ALLJ=
x
;
Turns all the relays at once.
The most significant bit of
the value specifies the state
of relay 16, and the least
significant bit
– the state of
relay 1.
x
represents the
Содержание smartDEN IP-16R Series
Страница 63: ...smartDEN IP 16R XX User Manual 13 Apr 2021 63 Figure 10 9 Inputs state notifications...
Страница 66: ...smartDEN IP 16R XX User Manual 13 Apr 2021 66 13 Appendix 2 Application reply formats 13 1 XML reply...
Страница 67: ...smartDEN IP 16R XX User Manual 13 Apr 2021 67 13 2 JSON reply...