XBee Firmware Library
1.6.0
|
Functions | |
uint_fast8_t | _zcl_identify_time_get (const zcl_attribute_full_t FAR *attribute) |
int | _zcl_identify_time_set (const zcl_attribute_full_t FAR *attribute, zcl_attribute_write_rec_t *rec) |
Function registered to #ZCL_IDENTIFY_ATTR_IDENTIFY_TIME attribute of Identify Cluster. More... | |
int | zcl_identify_command (const wpan_envelope_t FAR *envelope, void FAR *context) |
Handler for ZCL Identify Server Commands (Identify, IdentifyQuery). More... | |
uint16_t | zcl_identify_isactive (void) |
Used by main program to see if a device is in "Identification mode". More... | |
Variables | |
struct { | |
uint16_t end_of_list | |
zcl_attribute_full_t identify_time | |
} | zcl_identify_attr |
Standard attribute list for the Identify Server Cluster. More... | |
const zcl_attribute_tree_t | zcl_identify_attribute_tree [] |
uint32_t | zcl_identify_end = 0 |
uint16_t | zcl_identify_time = 0 |
Private variable for tracking amount of "Identification mode" time left. More... | |
Server code to implement the ZigBee Identify Cluster (ZCL Spec section 3.5).
Main program should call zcl_identify_isactive() in its main loop and perform some sort of action (flash an LED or LCD backlight) to help an installer identify the device during network commissioning.
Use the macro #ZCL_CLUST_ENTRY_IDENTIFY_SERVER to add an Identify Cluster Server to the cluster list of an endpoint.
Call zcl_identify_isactive() in the main loop of your program to see how many seconds are left in "Identification mode".