tsZCL_CommandDiscoveryResponse

This structure contains information about a Command Discovery response (see Section 2.9).

typedef struct
{
    bool_t bDiscoveryComplete;
    uint8  u8NumberOfCommands;
} tsZCL_CommandDiscoveryResponse;

Where:

  • bDiscoveryComplete is a Boolean flag which indicates whether the Command Discovery is complete, i.e. whether there are any commands remaining to be discovered:

    • TRUE - all commands have been discovered

    • FALSE - there are further commands to be discovered

  • u8NumberOfCommands is the number of discovered commands reported in the response (the individual commands are reported in a structure of the type tsZCL_CommandDiscoveryIndividualResponse - see Section 6.1.17)

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_COMMAND_RECEIVED_RESPONSE or E_ZCL_CBET_DISCOVER_COMMAND_GENERATED_RESPONSE.

Parent topic:General Structures