Coverage for src / bluetooth_sig / gatt / characteristics / resolvable_private_address_only.py: 100%

6 statements  

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

1"""Resolvable Private Address Only characteristic (0x2AC9). 

2 

3BT Core Spec v6.0, Vol 3, Part C, Section 12.5: 

4 Value shall be 1 octet in length (uint8). 

5 0 = only Resolvable Private Addresses will be used as local addresses 

6 after bonding. 

7 All other values are reserved for future use. 

8""" 

9 

10from __future__ import annotations 

11 

12from .base import BaseCharacteristic 

13from .templates import Uint8Template 

14 

15 

16class ResolvablePrivateAddressOnlyCharacteristic(BaseCharacteristic[int]): 

17 """Resolvable Private Address Only characteristic (0x2AC9). 

18 

19 org.bluetooth.characteristic.resolvable_private_address_only 

20 

21 A single uint8 indicating the device's RPA usage policy after bonding. 

22 Currently only value 0 is defined; all other values reserved. 

23 """ 

24 

25 expected_length: int = 1 

26 _template = Uint8Template()