Coverage for src / bluetooth_sig / gatt / services / object_transfer.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-04-03 16:41 +0000

1"""ObjectTransfer Service implementation.""" 

2 

3from __future__ import annotations 

4 

5from typing import ClassVar 

6 

7from ..characteristics.registry import CharacteristicName 

8from .base import BaseGattService 

9 

10 

11class ObjectTransferService(BaseGattService): 

12 """Object Transfer Service implementation (0x1825). 

13 

14 Provides object-based data transfer including browsing, reading, 

15 writing, and managing objects on a remote device. 

16 """ 

17 

18 service_characteristics: ClassVar[dict[CharacteristicName, bool]] = { 

19 CharacteristicName.OTS_FEATURE: True, 

20 CharacteristicName.OBJECT_NAME: True, 

21 CharacteristicName.OBJECT_TYPE: True, 

22 CharacteristicName.OBJECT_SIZE: True, 

23 CharacteristicName.OBJECT_FIRST_CREATED: False, 

24 CharacteristicName.OBJECT_LAST_MODIFIED: False, 

25 CharacteristicName.OBJECT_ID: False, 

26 CharacteristicName.OBJECT_PROPERTIES: True, 

27 CharacteristicName.OBJECT_ACTION_CONTROL_POINT: True, 

28 CharacteristicName.OBJECT_LIST_CONTROL_POINT: False, 

29 CharacteristicName.OBJECT_LIST_FILTER: False, 

30 CharacteristicName.OBJECT_CHANGED: False, 

31 }