![]() |
S145 SoftDevice for nRF54L15/nRF54L10/nRF54L05 API documentation 10.0.0
|
| uint32_t sd_ble_gatts_sys_attr_set | ( | uint16_t | conn_handle, |
| uint8_t const * | p_sys_attr_data, | ||
| uint16_t | len, | ||
| uint32_t | flags ) |
#include <ble_gatts.h>
Update persistent system attribute information.
Supply information about persistent system attributes to the stack, previously obtained using sd_ble_gatts_sys_attr_get. This call is only allowed for active connections, and is usually made immediately after a connection is established with an known bonded device, often as a response to a BLE_GATTS_EVT_SYS_ATTR_MISSING.
p_sysattrs may point directly to the application's stored copy of the system attributes obtained using sd_ble_gatts_sys_attr_get. If the pointer is NULL, the system attribute info is initialized, assuming that the application does not have any previously saved system attribute data for this device.
| GATTS Handle Value Indication or Notification with System Attributes Missing |
| GATTS System Attributes Handling: Unknown Peer |
| GATTS System Attributes Handling: Bonded Peer |
| [in] | conn_handle | Connection handle. |
| [in] | p_sys_attr_data | Pointer to a saved copy of system attributes supplied to the stack, or NULL. |
| [in] | len | Size of data pointed by p_sys_attr_data, in octets. |
| [in] | flags | Optional additional flags, see System Attribute Flags |
| NRF_SUCCESS | Successfully set the system attribute information. |
| BLE_ERROR_INVALID_CONN_HANDLE | Invalid Connection Handle. |
| NRF_ERROR_INVALID_ADDR | Invalid pointer supplied. |
| NRF_ERROR_INVALID_STATE | Invalid Connection State. |
| NRF_ERROR_INVALID_PARAM | Invalid flags supplied. |
| NRF_ERROR_INVALID_DATA | Invalid data supplied, the data should be exactly the same as retrieved with sd_ble_gatts_sys_attr_get. |
| NRF_ERROR_NO_MEM | Not enough memory to complete operation. |