tsZCL_AttributeDiscoveryExtendedResponse

This structure contains details of an attribute reported in a ‘discover attributes extended’ response. It is contained in a ZCL event of type E_ZCL_CBET_DISCOVER_INDIVIDUAL_ATTRIBUTE_EXTENDED_RESPONSE.

typedef struct
{
    bool_t                  bDiscoveryComplete;
    uint16                  u16AttributeEnum;
    teZCL_ZCLAttributeType  eAttributeDataType;
    uint8                   u8AttributeFlags;
}tsZCL_AttributeDiscoveryExtendedResponse;

where:

  • bDiscoveryComplete indicates whether this is the final attribute from a ‘discover attributes’ to be reported:

    • TRUE - final attribute

    • FALSE - not final attribute

  • u16AttributeEnum is the identifier of the attribute being reported

  • eAttributeDataType indicates the data type of the attribute being reported (see Section 7.1.3)

  • u8AttributeFlags is a 5-bit bitmap indicating the accessibility of the reported attribute (for details of the access types, refer to Section 2.3.1) - a bit is set to ‘1’ if the corresponding access type is supported, as follows:

Bit

Access Type

0

Read

1

Write

2

Reportable

3

Scene

4

Global

5-7

Reserved

The above structure is contained in the tsZCL_CallBackEvent event structure, detailed in Section 6.2, when the field eEventType is set to E_ZCL_CBET_DISCOVER_INDIVIDUAL_ATTRIBUTE_EXTENDED_RESPONSE.

Parent topic:General Structures