![]() |
S115 SoftDevice for nRF54L15/nRF54L10/nRF54L05 API documentation 10.0.0
|
| uint32_t sd_ble_gatts_value_set | ( | uint16_t | conn_handle, |
| uint16_t | handle, | ||
| ble_gatts_value_t * | p_value ) |
#include <ble_gatts.h>
Set the value of a given attribute.
| GATTS Queued Writes: Prepare Queue Full |
| GATTS Queued Writes: App handled, no attributes require authorization |
| [in] | conn_handle | Connection handle. Ignored if the value does not belong to a system attribute. |
| [in] | handle | Attribute handle. |
| [in,out] | p_value | Attribute value information. |
| NRF_SUCCESS | Successfully set the value of the attribute. |
| NRF_ERROR_INVALID_ADDR | Invalid pointer supplied. |
| NRF_ERROR_INVALID_PARAM | Invalid parameter(s) supplied. |
| NRF_ERROR_NOT_FOUND | Attribute not found. |
| NRF_ERROR_FORBIDDEN | Forbidden handle supplied, certain attributes are not modifiable by the application. |
| NRF_ERROR_DATA_SIZE | Invalid data size(s) supplied, attribute lengths are restricted by Maximum attribute lengths. |
| BLE_ERROR_INVALID_CONN_HANDLE | Invalid connection handle supplied on a system attribute. |