Data Structures | |
struct | zb_zcl_door_lock_read_lock_door_res_payload_s |
struct | zb_zcl_door_lock_read_unlock_door_res_payload_s |
Door Lock cluster defined in ZCL spec, clause 7.3.
The cluster contains 2 command sets:
Both requests have no payload and could be scheduled for sending with corresponding macros. Both responses have simple payload, and their sending and parsing with corresponding macros is almost trivial.
Send Door Lock command:
Send Door Lock response:
Parse Door Lock response:
Send Door Unlock command:
Send Door Unlock response:
Parse Door Unlock response:
For more information see devices_closures, 538_door_lock samples
#define ZB_ZCL_DECLARE_DOOR_LOCK_ATTRIB_LIST | ( | attr_list, | |
lock_state, | |||
lock_type, | |||
actuator_enabled | |||
) |
Declare attribute list for DoorLock cluster.
attr_list | - attribute list name |
lock_state | |
lock_type | |
actuator_enabled |
#define ZB_ZCL_DOOR_LOCK_READ_LOCK_DOOR_RES | ( | buffer | ) |
Door Lock response structured reading.
buffer | - pointer to the message buffer (of type zb_buf_t) containing payload |
#define ZB_ZCL_DOOR_LOCK_READ_UNLOCK_DOOR_RES | ( | buffer | ) |
Door unLock response structured reading.
buffer | - pointer to the message buffer (of type zb_buf_t) containing payload |
#define ZB_ZCL_DOOR_LOCK_SEND_LOCK_DOOR_REQ | ( | buffer, | |
dst_addr, | |||
dst_addr_mode, | |||
dst_ep, | |||
ep, | |||
dis_default_resp, | |||
cb | |||
) |
General macro for sending a "Door Lock" cluster command.
buffer | to put command payload and headers to |
dst_addr | address to send to |
dst_addr_mode | destination address mode |
dst_ep | destination endpoint |
ep | source endpoint |
dis_default_resp | "Disable default response" flag |
cb | command send status callback |
#define ZB_ZCL_DOOR_LOCK_SEND_LOCK_DOOR_RES | ( | buffer, | |
addr, | |||
dst_addr_mode, | |||
dst_ep, | |||
ep, | |||
prfl_id, | |||
seq_num, | |||
status | |||
) |
Door Lock command send response macro.
buffer | to put packet to |
addr | - address to send packet to |
dst_addr_mode | - addressing mode |
dst_ep | - destination endpoint |
ep | - sending endpoint |
prfl_id | - profile identifier |
seq_num | - sequence number |
status | - result of command execute |
#define ZB_ZCL_DOOR_LOCK_SEND_UNLOCK_DOOR_REQ | ( | buffer, | |
dst_addr, | |||
dst_addr_mode, | |||
dst_ep, | |||
ep, | |||
dis_default_resp, | |||
cb | |||
) |
General macro for sending a "Door Unlock" cluster command.
buffer | to put command payload and headers to |
dst_addr | address to send to |
dst_addr_mode | destination address mode |
dst_ep | destination endpoint |
ep | source endpoint |
dis_default_resp | "Disable default response" flag |
cb | command send status callback |
#define ZB_ZCL_DOOR_LOCK_SEND_UNLOCK_DOOR_RES | ( | buffer, | |
addr, | |||
dst_addr_mode, | |||
dst_ep, | |||
ep, | |||
prfl_id, | |||
seq_num, | |||
status | |||
) |
Door Unlock command send response macro.
buffer | to put packet to |
addr | - address to send packet to |
dst_addr_mode | - addressing mode |
dst_ep | - destination endpoint |
ep | - sending endpoint |
prfl_id | - profile identifier |
seq_num | - sequence number |
status | - result of command execute |
typedef struct zb_zcl_door_lock_read_lock_door_res_payload_s zb_zcl_door_lock_read_lock_door_res_payload_t |
Door lock commands response payload structure
typedef struct zb_zcl_door_lock_read_unlock_door_res_payload_s zb_zcl_door_lock_read_unlock_door_res_payload_t |
Door unlock commands response payload structure
Door Lock cluster attribute identifiers.
DoorLock cluster commands.
DoorLock cluster commands response.
Values for DoorState attribute.
Values for LockState attribute.
Values for LockType attribute.