S145 SoftDevice for nRF54L15/nRF54L10/nRF54L05 API documentation 10.0.0
Loading...
Searching...
No Matches

◆ sd_ble_uuid_vs_remove()

uint32_t sd_ble_uuid_vs_remove ( uint8_t * p_uuid_type)

#include <ble.h>

Remove a Vendor Specific base UUID.

This call removes a Vendor Specific base UUID. This function allows the application to reuse memory allocated for Vendor Specific base UUIDs.

Note
Currently this function can only be called with a p_uuid_type set to BLE_UUID_TYPE_UNKNOWN or the last added UUID type.
Parameters
[in,out]p_uuid_typePointer to a uint8_t where its value matches the UUID type in ble_uuid_t::type to be removed. If the type is set to BLE_UUID_TYPE_UNKNOWN, or the pointer is NULL, the last Vendor Specific base UUID will be removed. If the function returns successfully, the UUID type that was removed will be written back to p_uuid_type. If function returns with a failure, it contains the last type that is in use by the ATT Server.
Return values
NRF_SUCCESSSuccessfully removed the Vendor Specific base UUID.
NRF_ERROR_INVALID_ADDRIf p_uuid_type is invalid.
NRF_ERROR_INVALID_PARAMIf p_uuid_type points to a non-valid UUID type.
NRF_ERROR_FORBIDDENIf the Vendor Specific base UUID is in use by the ATT Server.