src.bluetooth_sig.registry.uuids.declarations¶
Declarations registry for Bluetooth SIG declaration UUIDs.
Attributes¶
Name | Description |
|---|---|
Classes¶
Name | Description |
|---|---|
Registry for Bluetooth SIG GATT attribute declarations. |
Module Contents¶
- class src.bluetooth_sig.registry.uuids.declarations.DeclarationsRegistry¶
Bases:
bluetooth_sig.registry.base.BaseUUIDRegistry[bluetooth_sig.types.registry.declarations.DeclarationInfo]Registry for Bluetooth SIG GATT attribute declarations.
- get_all_declarations() list[bluetooth_sig.types.registry.declarations.DeclarationInfo]¶
Get all declarations in the registry.
- Returns:
List of all DeclarationInfo objects
- get_declaration_info(uuid: str | bluetooth_sig.types.uuid.BluetoothUUID) bluetooth_sig.types.registry.declarations.DeclarationInfo | None¶
Get declaration information by UUID.
- Parameters:
uuid – The UUID to look up (string, int, or BluetoothUUID)
- Returns:
DeclarationInfo if found, None otherwise
- get_declaration_info_by_id(declaration_id: str) bluetooth_sig.types.registry.declarations.DeclarationInfo | None¶
Get declaration information by declaration ID.
- Parameters:
declaration_id – The declaration ID to look up
- Returns:
DeclarationInfo if found, None otherwise
- get_declaration_info_by_name(name: str) bluetooth_sig.types.registry.declarations.DeclarationInfo | None¶
Get declaration information by name (case insensitive).
- Parameters:
name – The declaration name to look up
- Returns:
DeclarationInfo if found, None otherwise
- is_declaration_uuid(uuid: str | bluetooth_sig.types.uuid.BluetoothUUID) bool¶
Check if a UUID corresponds to a known declaration.
- Parameters:
uuid – The UUID to check
- Returns:
True if the UUID is a known declaration, False otherwise
- src.bluetooth_sig.registry.uuids.declarations.declarations_registry = None¶