BLE_OTAPC_UpdateStart

C

uint16_t BLE_OTAPC_UpdateStart(uint16_t connHandle, uint8_t imgType);

Description

Initiates a firmware update start operation.

Note

An event of type BLE_OTAPC_EVT_START_RSP_IND will be generated upon completion of the procedure.

Parameters

ParameterDescription
[in] connHandleThe connection handle for which to perform the firmware update start operation.
[in] imgTypeThe type of image to use for the firmware update process, as defined by OTAPC image type definitions.

Return values

Return valueDescription
MBA_RES_SUCCESSThe start of the firmware update start operation was successful.
MBA_RES_OOMInternal memory allocation failure.
MBA_RES_INVALID_PARAThe provided connection handle is not valid.
MBA_RES_BAD_STATEThe OTA profile is not in the correct state to perform this operation.