tsOTA_ImageBlockResponsePayload
The following structure contains payload data for an Image Block Response issued by the server (as the result of an Image Block Request from a client):
typedef struct
{
uint8 u8Status;
union
{
tsOTA_WaitForData sWaitForData;
tsOTA_SuccessBlockResponsePayload sBlockPayloadSuccess;
}uMessage;
}tsOTA_ImageBlockResponsePayload;
where:
u8Statusindicates whether a data block is included in the response:OTA_STATUS_SUCCESS: A data block is included
OTA_STATUS_WAIT_FOR_DATA: No data block is included - client should re-request a data block after a waiting time
The element used from the union depends on the status reported above:
sWaitForDatais a structure containing information used to instruct the requesting client to wait for a time before requesting the data block again or requesting the next data block (see Section 49.11.15) - this information is only provided in the case of the status OTA_STATUS_WAIT_FOR_DATAsBlockPayloadSuccessis a structure containing a requested data block and associated information (see Section 49.11.13) - this data is only provided in the case of the status OTA_STATUS_SUCCESS
Parent topic:Structures