...
When the HNZ south plugin establishes a new connection wit ha with a HNZ device, it will automatically send the following messages to the device:
...
Code Block | ||
---|---|---|
| ||
{
"data_object":{
"do_type":"TC",
"do_station":12,
"do_addr":71,
"do_value":1,
"do_valid":0
}
} |
Example for a TVC (after receiving ACK):
Code Block | ||
---|---|---|
| ||
{
"data_object":{
"do_type":"TVC",
"do_station":12,
"do_addr":31,
"do_value":42,
"do_valid":0
}
} |
NB: if an attribute is not required, then it is not put in the output data object, which means that the output object structure always fits the protocol model object type.
...
Order | Attribute | Description | Expected values | Mandatory |
---|---|---|---|---|
0 | co_type | message type | TC, TVC | YES |
1 | co_addr | message address | [0..255][0..7] (ADO + ADB) for a TC, [0..31] for a TVC | YES |
2 | co_value | value | [1..2] (01b = on, 10b = off) | YES |
...
Code Block | ||
---|---|---|
| ||
{ "co_type":"TVC", "co_addr":31, "co_value":142 } |
NB: if an attribute is not required, then it is not put in the output data object, which means that the output object structure always fits the protocol model object type.
...