5.1.7.1 Over-the-Air Upgrade (OTAU) APIs

The following table provides details about the ZCL functions used to implement OTAU.

Table 5-10. OTAU APIs
Function PrototypeDescription
ZCL_Cluster_t ZCL_GetOtauClientCluster (void)Gets OTAUs cluster
ZCL_Cluster_t ZCL_GetOtauServerCluster (void)Gets OTAUs cluster
ZCL_Status_t ZCL_StartOtauService(ZCL_OtauInitParams_t *pInitParam, ZCL_OtauStatInd_t ind)OTAU parameters initialization. Start server discovery procedure on client side or start server.
ZCL_Status_t ZCL_StopOtauService(ZCL_OtauInitParams_t *pInitParam)Stop OTAU service (It is not implemented for client)
bool ZCL_UnsolicitedUpgradeEndResp(ZCL_Addressing_t *addressing, ZCL_OtauUpgradeEndResp_t *resp)The server can issue an unsolicited Upgrade End Response command to the client. For example, the server can use this to synchronize the upgrade across multiple clients at the same time.
bool ZCL_ImageNotifyReq(ZCL_Addressing_t *addressing, ZCL_OtauImageNotify_t *resp)Server calls this to send image Notify command to client