Object Transfer Service client module.
More...
Object Transfer Service client module.
This is the main module of the Object Transfer Service (OTS) client.
Function for receiving an object.
This Function will only succeed in receiving an object if the peer is in a state to send it. call nrf_ble_ots_c_oacp_read_object before this function.
- Parameters
-
[in,out] | p_ots_c | Pointer to Object Transfer client structure. |
[in,out] | p_obj | Pointer to buffer where the received data will be stored. |
Function sending an object.
This Function will only succeed in sending an object if the peer is in a state to receive it. call nrf_ble_ots_c_oacp_write_object before this function.
- Parameters
-
[in,out] | p_ots_c | Pointer to Object Transfer client structure. |
[in,out] | p_obj | Pointer to object that will be sent to the peer. |
- Return values
-
NRF_ERROR_INVALID_STATE | if the Object Transfer module is not initialized. |
NRF_ERROR_NULL | if any of the input parameters are NULL. |
Function for handling the Application's BLE Stack events.
- Parameters
-
[in,out] | p_ots_c | Pointer to Object Transfer client structure. |
[in] | p_ble_evt | Pointer to the BLE event received. |