eOTA_GetCurrentOtaHeader

teZCL_Status eOTA_GetCurrentOtaHeader(
    uint8 u8Endpoint,
    bool_t bIsServer,
    tsOTA_ImageHeader *psOTAHeader);

Description

This function can be used to obtain the OTA header of the application image which is currently running on the local node.

The obtained parameter values are received in a tsOTA_ImageHeader structure.

Parameters

  • u8Endpoint        Number of endpoint on which cluster operates

  • bIsServer        Side of the cluster implemented on this device:

  • TRUE - Server

  • FALSE - Client

  • psOTAHeader        Pointer         to structure to receive the current OTA header (see Section 49.11.1)

Returns

  • E_ZCL_SUCCESS

  • E_ZCL_ERR_EP_RANGE

  • E_ZCL_ERR_CLUSTER_NOT_FOUND

  • E_ZCL_ERR_PARAMETER_NULL

Parent topic:General Functions