eCLD_GroupsAdd
teZCL_Status eCLD_GroupsAdd(uint8 u8SourceEndPointId,
uint16 u16GroupId,
uint8 *pu8GroupName);
Description
This function adds the specified endpoint on the local node to the group with the specified group ID/address and specified group name. The relevant entry is modified in the Group table on the local endpoint (of the calling application). If the group does not currently exist, it is created by adding a new entry for the group to the Group table.
Note that the number of entries in the Group table must not exceed the value of CLD_GROUPS_MAX_NUMBER_OF_GROUPS defined at compile time (see Section 12.8).
Parameters
u8SourceEndPointId: Number of local endpoint to be added to group.
u16GroupId: 16-bit group ID/address of group.
pu8GroupName: Pointer to character string representing name of group.
Returns
E_ZCL_SUCCESS
E_ZCL_ERR_PARAMETER_NULL
E_ZCL_ERR_EP_RANGE
E_ZCL_ERR_EP_UNKNOWN
E_ZCL_ERR_CLUSTER_NOT_FOUND
If an error is returned by the ZigBee PRO stack function which is invoked by this function to transmit the data, this error may be obtained by calling eZCL_GetLastZpsError().
Parent topic:Functions