All commands in the cluster have only request form, and carry no payload.
- Example
- On command sending:
#define DST_ADDR 0
#define DST_ENDPOINT 5
#define DST_ADDR_MODE ZB_APS_ADDR_MODE_16_ENDP_PRESENT
ZB_ZCL_ON_OFF_SEND_ON_REQ(
buf,
DST_ADDR,
DST_ADDR_MODE,
DST_ENDPOINT,
HA_SWITCH_ENDPOINT,
Other two commands can be sent in the same way using appropriate macros.
For more information see 5.7.3_onoff_server sample
On/Off cluster attribute identifiers.
- See Also
- ZCL spec, subclause 3.8.2.2
Enumerator |
---|
ZB_ZCL_ATTR_ON_OFF_ON_OFF_ID |
OnOff attribute.
|
On/Off cluster command identifiers.
- See Also
- ZCL spec, subclause 3.8.2.3
Enumerator |
---|
ZB_ZCL_CMD_ON_OFF_OFF_ID |
"Turn off" command.
|
ZB_ZCL_CMD_ON_OFF_ON_ID |
"Turn on" command.
|
ZB_ZCL_CMD_ON_OFF_TOGGLE_ID |
"Toggle state" command.
|
Permissible values for OnOff attribute.
Enumerator |
---|
ZB_ZCL_ON_OFF_IS_OFF |
"Off" value
|
ZB_ZCL_ON_OFF_IS_ON |
"On" value
|