eOTA_GetServerData
teZCL_Status eOTA_GetServerData(
uint8 u8Endpoint,
uint8 u8ImageIndex,
tsCLD_PR_Ota *psOTAData);
Description
This function can be used to obtain server parameter values (including query jitter, data size, image data, current time and upgrade time). The obtained parameter values are received in a structure, described in Section 49.11.22. For detailed descriptions of these parameters, refer to the *ZigBee Over-the-Air Upgrading Cluster Specification (095264)*from the ZigBee Alliance.
The values of these parameters can be set by the application using the function eOTA_SetServerParams().
The index of the image for which server parameter values are to be obtained must be specified. For an image stored in the Flash memory, this index will take a value in the range 0 to (OTA_MAX_IMAGES_PER_ENDPOINT - 1).
Parameters
u8Endpoint: Number of endpoint (on server) on which cluster operates
u8ImageIndex: Index number of image
psOTAData: Pointer to structure to receive parameter values (see Section 49.11.22)
Returns
E_ZCL_SUCCESS
E_ZCL_FAIL
Parent topic:Server Functions