Functions
Functions
BLE Services » OTA Service (OTAS)

## Functions
sdk_err_t | otas_service_init (otas_init_t *p_otas_init)
| Add an OTA Service instance in the DB. More...
void | ota_fw_save_addr_set (uint32_t dfu_fw_save_addr)
| DFU Firmware save address set. More...
sdk_err_t | otas_notify_tx_data (uint8_t conn_idx, uint8_t *p_data, uint16_t length)
| Send data to peer device. More...

## Detailed Description

## Function Documentation

## ◆ ota_fw_save_addr_set()

void ota_fw_save_addr_set | ( | uint32_t | dfu_fw_save_addr | ) |

DFU Firmware save address set.

Parameters

  [in] | dfu_fw_save_addr | DFU firmware save addrss..

## ◆ otas_notify_tx_data()

sdk_err_t otas_notify_tx_data | ( | uint8_t | conn_idx,
|  | uint8_t * | p_data,
|  | uint16_t | length
| ) |  |

Send data to peer device.

Parameters

  [in] | conn_idx | Connection index
  [in] | p_data | The Pointer of send value
  [in] | length | The Lenth of send value

Returns
  Result of notify and indicate value

## ◆ otas_service_init()

sdk_err_t otas_service_init | ( | otas_init_t * | p_otas_init | ) |

Add an OTA Service instance in the DB.

Parameters

  [in] | p_otas_init | :Pointer to OTA Service environment variable

Returns
  Result of service initialization.