src.bluetooth_sig.registry.uuids.service_classes¶
Service classes registry for Bluetooth SIG service class UUIDs.
Attributes¶
Name | Description |
|---|---|
Classes¶
Name | Description |
|---|---|
Registry for Bluetooth SIG service class definitions. |
Module Contents¶
- class src.bluetooth_sig.registry.uuids.service_classes.ServiceClassesRegistry¶
Bases:
bluetooth_sig.registry.base.BaseUUIDRegistry[bluetooth_sig.types.registry.service_class.ServiceClassInfo]Registry for Bluetooth SIG service class definitions.
- get_all_service_classes() list[bluetooth_sig.types.registry.service_class.ServiceClassInfo]¶
Get all service classes in the registry.
- Returns:
List of all ServiceClassInfo objects
- get_service_class_info(uuid: str | bluetooth_sig.types.uuid.BluetoothUUID) bluetooth_sig.types.registry.service_class.ServiceClassInfo | None¶
Get service class information by UUID.
- Parameters:
uuid – The UUID to look up (string, int, or BluetoothUUID)
- Returns:
ServiceClassInfo if found, None otherwise
- get_service_class_info_by_id(service_class_id: str) bluetooth_sig.types.registry.service_class.ServiceClassInfo | None¶
Get service class information by service class ID.
- Parameters:
service_class_id – The service class ID to look up
- Returns:
ServiceClassInfo if found, None otherwise
- get_service_class_info_by_name(name: str) bluetooth_sig.types.registry.service_class.ServiceClassInfo | None¶
Get service class information by name (case insensitive).
- Parameters:
name – The service class name to look up
- Returns:
ServiceClassInfo if found, None otherwise
- is_service_class_uuid(uuid: str | bluetooth_sig.types.uuid.BluetoothUUID) bool¶
Check if a UUID corresponds to a known service class.
- Parameters:
uuid – The UUID to check
- Returns:
True if the UUID is a known service class, False otherwise
- src.bluetooth_sig.registry.uuids.service_classes.service_classes_registry = None¶