Object Action Control Point module.
More...
Object Action Control Point module.
This is the Object Action Control Point module of the Object Transfer Service (OTS) client.
Function for enabling remote indication.
- Parameters
-
[in,out] | p_ots_c | Pointer to Object Transfer client structure. |
[in] | enable | True to enable Object Action Control Point (OACP) indication, false to disable. |
- Return values
-
NRF_SUCCESS | Operation success. |
- Returns
- If functions from other modules return errors to this function, the SoftDevice Global Error Codes are propagated.
Function for requesting a read of an object.
- Parameters
-
[in,out] | p_ots_c | Pointer to Object Transfer client structure. |
[in] | offset | Offset of the read. |
[in] | len | length of the read. |
- Return values
-
NRF_SUCCESS | Operation success. |
- Returns
- If functions from other modules return errors to this function, the SoftDevice Global Error Codes are propagated.
Function for requesting a write of an object.
With this function we let the peer know the length of the object we want to write. (The object itself is not written by this function.) The peer will indicate a response on the Object Action Control Point. If the write is accepted (the event NRF_BLE_OTS_C_OACP_RES_SUCCESS ), an object can be transfered with nrf_ble_ots_c_l2cap_obj_send.
- Parameters
-
[in,out] | p_ots_c | Pointer to Object Transfer client structure. |
[in] | offset | Offset of the write. |
[in] | len | length of the object to write. |
[in] | truncate | True to let the write truncate on the object. |
- Return values
-
NRF_SUCCESS | Operation success. |
NRF_ERROR_INVALID_STATE | Module is not initialized, or the handles of the peer OACP are invalid. |
- Returns
- If functions from other modules return errors to this function, the SoftDevice Global Error Codes are propagated.
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. |