src.bluetooth_sig.registry.service_discovery.attribute_ids

Service Discovery Attribute ID Registry for SDP attribute identifiers.

Attributes

Classes

Name

Description

ServiceDiscoveryAttributeRegistry

Registry for SDP attribute identifiers with lazy loading.

Module Contents

class src.bluetooth_sig.registry.service_discovery.attribute_ids.ServiceDiscoveryAttributeRegistry

Bases: bluetooth_sig.registry.base.BaseGenericRegistry[ServiceDiscoveryAttributeRegistry]

Registry for SDP attribute identifiers with lazy loading.

Loads attribute IDs from service_discovery/attribute_ids/*.yaml, attribute_id_offsets_for_strings.yaml, and protocol_parameters.yaml.

Thread-safe: Multiple threads can safely access the registry concurrently.

get_all_categories() list[str]

Return all loaded category names (sorted).

get_attribute_ids(category: str) list[bluetooth_sig.types.registry.profile_types.AttributeIdEntry]

Get attribute ID entries for a named category.

Parameters:

category – The file stem / category name, e.g. "universal_attributes", "a2dp", "sdp", "attribute_id_offsets_for_strings".

Returns:

List of AttributeIdEntry or an empty list if not found.

get_protocol_parameters() list[bluetooth_sig.types.registry.profile_types.ProtocolParameterEntry]

Return all protocol parameter entries.

resolve_attribute_name(category: str, value: int) str | None

Look up the attribute name for a given numeric value within a category.

Parameters:
  • category – Category name (e.g. "universal_attributes").

  • value – The numeric attribute ID.

Returns:

The attribute name or None if not found.

src.bluetooth_sig.registry.service_discovery.attribute_ids.service_discovery_attribute_registry