Signal event to the OTA Agent task.
This function adds the event to the back of event queue and used by internal OTA modules to signal agent task.
- Parameters
-
[in] | pEventMsg | Event to be added to the queue |
- Returns
- true If operation is successful, false If the event can not be added
Example Signal OTA agent that a new file block has been received over the http connection.
OtaHttpStatus_t handleDataFromHTTPService(
const HTTPResponse_t * pResponse )
{
bool result = false;
if( pData != NULL )
{
memcpy( pData->
data, pResponse->pBody, pResponse->bodyLen );
if( result )
{
}
}
return returnValue;
}