According to ZCL spec, subclause 3.14.4, Binary Input (Basic) cluster has no cluster-specific commands. Cluster attributes could be queried with general ZCL commands.
- Example
-
For more information see 544_binary_input sample
#define ZB_ZCL_BINARY_INPUT_SET_NORMAL_MODE |
( |
|
ep | ) |
|
Value:
\
\
}
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:115
Definition: zb_zcl_common.h:155
StatusFlag attribute.
Definition: zb_zcl_binary_input.h:91
Definition: zb_zcl_common.h:124
#define ZB_ZCL_SET_ATTRIBUTE(ep, cluster_id, cluster_role, attr_id, value_ptr, check_access)
Sets attribute value, perform all needed checks before and after setting new value, including read-only check and marking for reporting.
Definition: zb_zcl_common.h:656
Definition: zb_zcl_binary_input.h:100
Definition: zb_types.h:99
OutOfService attribute.
Definition: zb_zcl_binary_input.h:80
Set normal operating mode.
- Parameters
-
#define ZB_ZCL_BINARY_INPUT_SET_OUT_OF_SERVICE |
( |
|
ep | ) |
|
Value:
\
\
if (attr_desc) \
{ \
} \
}
struct zb_zcl_attr_s zb_zcl_attr_t
ZCL attribute definiton structure.
Definition: zb_zcl_binary_input.h:104
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:115
zb_zcl_attr_t * zb_zcl_get_attr_desc_a(zb_uint8_t ep, zb_uint16_t cluster_id, zb_uint8_t cluster_role, zb_uint16_t attr_id)
Definition: zb_zcl_common.h:155
StatusFlag attribute.
Definition: zb_zcl_binary_input.h:91
Definition: zb_zcl_common.h:124
#define ZB_ZCL_SET_ATTRIBUTE(ep, cluster_id, cluster_role, attr_id, value_ptr, check_access)
Sets attribute value, perform all needed checks before and after setting new value, including read-only check and marking for reporting.
Definition: zb_zcl_common.h:656
Definition: zb_types.h:100
Definition: zb_types.h:99
OutOfService attribute.
Definition: zb_zcl_binary_input.h:80
Set Out of service operating mode.
- Parameters
-
#define ZB_ZCL_BINARY_INPUT_SET_OVERRIDEN_MODE |
( |
|
ep | ) |
|
Value:
\
if (attr_desc) \
{ \
} \
}
struct zb_zcl_attr_s zb_zcl_attr_t
ZCL attribute definiton structure.
Definition: zb_zcl_binary_input.h:103
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:115
zb_zcl_attr_t * zb_zcl_get_attr_desc_a(zb_uint8_t ep, zb_uint16_t cluster_id, zb_uint8_t cluster_role, zb_uint16_t attr_id)
Definition: zb_zcl_common.h:155
StatusFlag attribute.
Definition: zb_zcl_binary_input.h:91
Definition: zb_zcl_common.h:124
#define ZB_ZCL_SET_ATTRIBUTE(ep, cluster_id, cluster_role, attr_id, value_ptr, check_access)
Sets attribute value, perform all needed checks before and after setting new value, including read-only check and marking for reporting.
Definition: zb_zcl_common.h:656
Definition: zb_types.h:99
Set overriden operating mode.
- Parameters
-
Binary Input cluster attribute identifiers.
Enumerator |
---|
ZB_ZCL_ATTR_BINARY_INPUT_OUT_OF_SERVICE_ID |
OutOfService attribute.
|
ZB_ZCL_ATTR_BINARY_INPUT_PRESENT_VALUE_ID |
PresentValue attribute.
|
ZB_ZCL_ATTR_BINARY_INPUT_STATUS_FLAG_ID |
StatusFlag attribute.
|
StatusFlag attribute values.
- See also
- ZCL spec 3.14.10.3.
Enumerator |
---|
ZB_ZCL_BINARY_INPUT_STATUS_FLAG_NORMAL |
Normal (default) state.
|
ZB_ZCL_BINARY_INPUT_STATUS_FLAG_IN_ALARM |
In alarm bit.
|
ZB_ZCL_BINARY_INPUT_STATUS_FLAG_FAULT |
Fault bit.
|
ZB_ZCL_BINARY_INPUT_STATUS_FLAG_OVERRIDEN |
Overriden bit.
|
ZB_ZCL_BINARY_INPUT_STATUS_FLAG_OUT_OF_SERVICE |
Out of service bit.
|