1.2.2.3.4.1.4.9 BLE_OTAPC_UpdateStart
C
uint16_t BLE_OTAPC_UpdateStart(uint16_t connHandle, uint8_t imgType);
Description
Perform firmware update start operation.
BLE_OTAPC_EVT_START_RSP_IND will be generated if the procedure is complete.
Parameters
Parameter | Description |
---|---|
[in] connHandle | Handle of the connection to do firmware update start operation. |
[in] imgType | The image used for firmware update process. See Definition of image type. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully starts firmware update start operation. |
MBA_RES_OOM | No available memory. |
MBA_RES_INVALID_PARA | Invalid parameters. Connection handle is not valid. |
MBA_RES_BAD_STATE | OTA profile server has not allowed to perform firmware update proceudre yet. |