Functions

sdk_err_t otas_service_init (otas_init_t *p_otas_init)
 Add an OTA Service instance in the DB. 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...
 
uint16_t otas_service_start_handle_get (void)
 Provide the interface for other modules to obtain the ots service start handle . More...
 

Detailed Description

Function Documentation

◆ 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_idxConnection index
[in]p_dataThe Pointer of send value
[in]lengthThe 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.

◆ otas_service_start_handle_get()

uint16_t otas_service_start_handle_get ( void  )

Provide the interface for other modules to obtain the ots service start handle .

Returns
The ots service start handle.