eZCL_Register

teZCL_Status eZCL_Register(
     tsZCL_EndPointDefinition *psEndPointDefinition);

Description

This function is used to register an endpoint with the ZCL. The function validates the clusters and corresponding attributes supported by the endpoint, and registers the endpoint.

The function should only be called to register a custom endpoint (which does not contain one of the standard ZigBee device types). It should be called for each custom endpoint on the local node. The function is not required when using a standard ZigBee device (for example, On/Off Switch) on an endpoint - in this case, the appropriate device registration function should be used.

Parameters

Returns

  • E_ZCL_SUCCESS

  • E_ZCL_FAIL

  • E_ZCL_ERR_PARAMETER_NULL

  • E_ZCL_ERR_PARAMETER_RANGE

  • E_ZCL_ERR_HEAP_FAIL

  • E_ZCL_ERR_EP_RANGE

  • E_ZCL_ERR_EP_UNKNOWN

  • E_ZCL_ERR_SECURITY_RANGE

  • E_ZCL_ERR_CLUSTER_0

  • E_ZCL_ERR_CLUSTER_NULL

  • E_ZCL_ERR_CLUSTER_NOT_FOUND

  • E_ZCL_ERR_CLUSTER_ID_RANGE

  • E_ZCL_ERR_ATTRIBUTES_NULL

  • E_ZCL_ERR_ATTRIBUTE_TYPE_UNSUPPORTED,

  • E_ZCL_ERR_ATTRIBUTE_NOT_FOUND,

  • E_ZCL_ERR_CALLBACK_NULL

Parent topic:General Functions