OTA Agent initialization function.
                   const uint8_t * pThingName,
void(* OtaAppCallback_t)(OtaJobEvent_t eEvent, const void *pData)
OTA update complete callback function typedef.
Definition: ota.h:243
 
OtaErr_t
The OTA API return status. OTA agent error codes are in the upper 8 bits of the 32 bit OTA error word...
Definition: ota.h:79
 
OtaErr_t OTA_Init(OtaAppBuffer_t *pOtaBuffer, const OtaInterfaces_t *pOtaInterfaces, const uint8_t *pThingName, OtaAppCallback_t OtaAppCallback)
OTA Agent initialization function.
Definition: ota.c:3062
 
OTA Application Buffer size information.
Definition: ota.h:271
 
OTA Interface for referencing different components.
Definition: ota.h:257
 
  Initialize the OTA engine by starting the OTA Agent ("OTA Task") in the system. This function must be called with the connection client context before calling OTA_CheckForUpdate. Only one OTA Agent may exist.
                     const void * pData );
 
{
    .updateFilePathsize = OTA_MAX_FILE_PATH_SIZE,
    .pCertFilePath      = certFilePath,
    .certFilePathSize   = OTA_MAX_FILE_PATH_SIZE,
    .pDecodeMemory      = decodeMem,
    .decodeMemorySize   = otaconfigFILE_BLOCK_SIZE,
    .pFileBitmap        = bitmap,
    .pUrl               = updateUrl,
    .urlSize            = OTA_MAX_URL_SIZE,
    .pAuthScheme        = authScheme,
    .authSchemeSize     = OTA_MAX_AUTH_SCHEME_SIZE
};
 
{
    
    .os.event.send = Posix_OtaSendEvent;
    ...
    
    .mqtt.subscribe = mqttSubscribe;
    .mqtt.publish = mqttPublish;
    .mqtt.unsubscribe = mqttUnsubscribe;
    
    .http.init = httpInit;
    .http.request = httpRequest;
    .http.deinit = httpDeinit;
    
    .pal.getPlatformImageState = otaPal_GetPlatformImageState;
    .pal.setPlatformImageState = otaPal_SetPlatformImageState;
}
 
 
char * pClientIdentifier = "uniqueClientID";
 
                   &otaInterfaces,
                   ( const uint8_t * ) pClientIdentifier,
{
    
}
#define OTA_MAX_BLOCK_BITMAP_SIZE
Max allowed number of bytes to track all blocks of an OTA file. Adjust block size if more range is ne...
Definition: ota_private.h:64
 
OtaJobEvent_t
OTA Job callback events.
Definition: ota.h:165
 
@ OtaErrNone
No error occurred during the operation.
Definition: ota.h:80
 
uint8_t * pUpdateFilePath
Path to store the files.
Definition: ota.h:272
 
OtaInitEvent_t init
Initialization event.
Definition: ota_os_interface.h:263
 
OtaOSInterface_t os
OS interface to store event, timers and memory operations.
Definition: ota.h:258
 
OtaEventInterface_t event
OTA Event interface.
Definition: ota_os_interface.h:306