S115 SoftDevice for nRF54LM20 API documentation 10.0.0
Loading...
Searching...
No Matches

◆ sd_ble_gatts_attr_get()

uint32_t sd_ble_gatts_attr_get ( uint16_t handle,
ble_uuid_t * p_uuid,
ble_gatts_attr_md_t * p_md )

#include <ble_gatts.h>

Retrieve the attribute UUID and/or metadata.

Parameters
[in]handleAttribute handle
[out]p_uuidUUID of the attribute. Use NULL to omit this field.
[out]p_mdMetadata of the attribute. Use NULL to omit this field.
Return values
NRF_SUCCESSSuccessfully retrieved the attribute metadata,
NRF_ERROR_INVALID_ADDRInvalid pointer supplied.
NRF_ERROR_INVALID_PARAMInvalid parameters supplied. Returned when both p_uuid and p_md are NULL.
NRF_ERROR_NOT_FOUNDAttribute was not found.