UUID discovery option. More...
#include <ble_gattc.h>
Data Fields |
|
| uint8_t | auto_add_vs_enable : 1 |
Detailed Description
UUID discovery option.
Used with sd_ble_opt_set to enable and disable automatic insertion of discovered 128-bit UUIDs to the Vendor Specific UUID table. Disabled by default.
- When disabled, if a procedure initiated by sd_ble_gattc_primary_services_discover , sd_ble_gattc_relationships_discover , sd_ble_gattc_characteristics_discover , sd_ble_gattc_descriptors_discover finds a 128-bit UUID which was not added by sd_ble_uuid_vs_add , ble_uuid_t::type will be set to BLE_UUID_TYPE_UNKNOWN in the corresponding event.
- When enabled, all found 128-bit UUIDs will be automatically added. The application can use sd_ble_uuid_encode to retrieve the 128-bit UUID from ble_uuid_t received in the corresponding event. If the total number of Vendor Specific UUIDs exceeds the table capacity, ble_uuid_t::type will be set to BLE_UUID_TYPE_UNKNOWN in the corresponding event. See also ble_common_cfg_vs_uuid_t , sd_ble_uuid_vs_remove .
- Note
- sd_ble_opt_get is not supported for this option.
- Return values
-
NRF_SUCCESS Set successfully.
Field Documentation
| uint8_t ble_gattc_opt_uuid_disc_t::auto_add_vs_enable |
Set to 1 to enable (or 0 to disable) automatic insertion of discovered 128-bit UUIDs.