Developing with ZBOSS SDK for Zigbee
|
Macros | |
#define | ZB_HA_DEVICE_VER_MAINS_POWER_OUTLET 0 |
#define | ZB_HA_DECLARE_MAINS_POWER_OUTLET_CLUSTER_LIST( cluster_list_name, basic_attr_list, identify_attr_list, on_off_attr_list, scenes_attr_list, groups_attr_list) |
Declare cluster list for Mains power outlet device. More... | |
#define | ZB_HA_DECLARE_MAINS_POWER_OUTLET_EP(ep_name, ep_id, cluster_list) |
Declare endpoint for Mains power outlet device. More... | |
#define | ZB_HA_DECLARE_MAINS_POWER_OUTLET_CTX(device_ctx, ep_name) ZBOSS_DECLARE_DEVICE_CTX_1_EP(device_ctx, ep_name) |
Declare Mains Power Outlet device context. More... | |
Mains Power Outlet device has 5 clusters (see spec 7.4.10):
Mains Power Outlet device sample
Declaring clusters:
Registering device list:
Example of command handler:
The complete set of Mains Power Outlet device samples can be found in application/HA_samples/mains_power_outlet
#define ZB_HA_DECLARE_MAINS_POWER_OUTLET_CLUSTER_LIST | ( | cluster_list_name, | |
basic_attr_list, | |||
identify_attr_list, | |||
on_off_attr_list, | |||
scenes_attr_list, | |||
groups_attr_list | |||
) |
Declare cluster list for Mains power outlet device.
cluster_list_name | - cluster list variable name |
basic_attr_list | - attribute list for Basic cluster |
identify_attr_list | - attribute list for Identify cluster |
on_off_attr_list | - attribute list for On/Off cluster |
scenes_attr_list | - attribute list for Scenes cluster |
groups_attr_list | - attribute list for Groups cluster |
#define ZB_HA_DECLARE_MAINS_POWER_OUTLET_CTX | ( | device_ctx, | |
ep_name | |||
) | ZBOSS_DECLARE_DEVICE_CTX_1_EP(device_ctx, ep_name) |
Declare Mains Power Outlet device context.
device_ctx | - device context variable name. |
ep_name | - endpoint variable name. |
#define ZB_HA_DECLARE_MAINS_POWER_OUTLET_EP | ( | ep_name, | |
ep_id, | |||
cluster_list | |||
) |
Declare endpoint for Mains power outlet device.
ep_name | - endpoint variable name |
ep_id | - endpoint ID |
cluster_list | - endpoint cluster list |
#define ZB_HA_DEVICE_VER_MAINS_POWER_OUTLET 0 |
Mains power outlet device version