eOTA_ClientQueryNextImageRequest
teZCL_Status eOTA_ClientQueryNextImageRequest(
uint8 u8SourceEndpoint,
uint8 u8DestinationEndpoint,
tsZCL_Address *psDestinationAddress,
tsOTA_QueryImageRequest
*psQueryImageRequest);
Description
This function issues a Query Next Image Request to the server and should be called in either of the following situations:
to poll for a new application image (typically used in this way by an End Device) - in this case, the function should normally be called periodically
to respond to an Image Notify message from the server, which indicated that a new application image is available for download - in this case, the function call should be prompted by the event E_CLD_OTA_COMMAND_IMAGE_NOTIFY
The payload of the request includes the relevant image type, current file version, hardware version and manufacturer code.
As a result of this function call, a Query Next Image Response will (eventually) be received from the server. The arrival of this response will trigger an E_CLD_OTA_COMMAND_QUERY_NEXT_IMAGE_RESPONSE event.
Parameters
u8SourceEndpoint: Number of endpoint (on client) from which the request is sent
u8DestinationEndpoint: Number of endpoint (on server) to which the request is sent
psDestinationAddress: Pointer to structure containing the address of the target server (see Section 6.1.4)
psQueryImageRequest: Pointer to structure containing payload for request (see Section 49.11.6)
Returns
E_ZCL_SUCCESS
E_ZCL_FAIL
Parent topic:Client Functions