AWS IoT Over-the-air Update v2.0.0 (Release Candidate)
Client library for AWS IoT OTA
ota_interface.c File Reference

Internal interface for setting the data and control planes. More...

#include <string.h>
#include <assert.h>
#include "ota_interface_private.h"

Functions

void setControlInterface (OtaControlInterface_t *pControlInterface)
 Set control interface for OTA operations. More...
 
OtaErr_t setDataInterface (OtaDataInterface_t *pDataInterface, const uint8_t *pProtocol)
 Set data interface for OTA operations. More...
 

Detailed Description

Internal interface for setting the data and control planes.

Function Documentation

◆ setControlInterface()

void setControlInterface ( OtaControlInterface_t pControlInterface)

Set control interface for OTA operations.

This function updates the OTA control operation functions as per the config options selected.

Parameters
[out]pControlInterfaceOTA Control interface.

◆ setDataInterface()

OtaErr_t setDataInterface ( OtaDataInterface_t pDataInterface,
const uint8_t *  pProtocol 
)

Set data interface for OTA operations.

This function updates the OTA data operation functions as per the config options selected.

Parameters
[out]pDataInterfaceOTA data interface.
[in]pProtocolProtocols used for the download.