Object Transfer Service, OACP handling

nRF5 SDK v14.0.0

Object Transfer Service module. More...

Functions

uint32_t ble_ots_oacp_init ( ble_ots_oacp_t *p_ots_oacp, ble_ots_oacp_init_t *p_ots_oacp_init)
Function for initializing the Object Transfer OACP characteristic. More...
void ble_ots_oacp_on_ble_evt ( ble_ots_oacp_t *p_ots_oacp, ble_evt_t const *p_ble_evt)
Function for handling the Application's BLE Stack events. More...
ble_ots_oacp_res_code_t ble_ots_oacp_do_proc ( ble_ots_oacp_t *p_ots_oacp, ble_ots_oacp_proc_t *p_oacp_proc)
Execute an Object Action Control Point procedure. More...

Detailed Description

Object Transfer Service module.

This module is responsible for handling the Object Transfer Service Object Action Control Point.

Function Documentation

ble_ots_oacp_res_code_t ble_ots_oacp_do_proc ( ble_ots_oacp_t * p_ots_oacp ,
ble_ots_oacp_proc_t * p_oacp_proc
)

Execute an Object Action Control Point procedure.

Parameters
[in] p_ots_oacp Object Transfer Service OACP structure.
[in] p_oacp_proc Pointer to the procedure to be applied.
Returns
BLE_OTS_WRITE_SUCCESS on success, otherwise an error.
uint32_t ble_ots_oacp_init ( ble_ots_oacp_t * p_ots_oacp ,
ble_ots_oacp_init_t * p_ots_oacp_init
)

Function for initializing the Object Transfer OACP characteristic.

Parameters
[out] p_ots_oacp Object Transfer Service OACP structure. This structure will have to be supplied by the application. It will be initialized by this function, and will later be used to identify this particular instance.
[in] p_ots_oacp_init Information needed to initialize the module.
Returns
NRF_SUCCESS on successful initialization, otherwise an error code.
void ble_ots_oacp_on_ble_evt ( ble_ots_oacp_t * p_ots_oacp ,
ble_evt_t const * p_ble_evt
)

Function for handling the Application's BLE Stack events.

Handles all events from the BLE stack of interest to the OACP module.

Parameters
[in] p_ots_oacp Object Transfer Service OACP structure
[in] p_ble_evt Event received from the BLE stack.