5.1.7.2.1 ZCL_Get Function

Syntax

void ZCL_Get(ZCL_Get_t *req);

Description

The function gets the security parameters from ZCL.

Profile-based applications use the function to obtain various security parameters, including link keys, network key and key establishment cluster’s data. The security parameter that the function obtains depends on the value of the argument’s attr.id field. The ZCL_SecurityAttrId_t enumeration type provides the possible values. The application executes the function synchronously.

The response statuses, accessed via the argument’s ZCL_Get_t-status field, are as follows:
  • ZCL_SUCCESS_STATUS (0x00) – Operation completed successfully
  • ZCL_INVALID_ATTRIBUTE_VALUE_STATUS (0x02) – The application cannot find the requested link key, the provided endpoint is invalid or the certificate description provided is null.
  • ZCL_UNSUPPORTED_ATTRIBUTE_STATUS (0x86) – An unsupported value is set to the argument’s attr.id field.
Input Parameters
Parameter NameDescription
reqRequest structure to pass attribute ID
Return Type and Values
  • None