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
« prev ^ index » next coverage.py v7.13.5, created at 2026-04-03 16:41 +0000
1"""Resolvable Private Address Only characteristic (0x2AC9).
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"""
10from __future__ import annotations
12from .base import BaseCharacteristic
13from .templates import Uint8Template
16class ResolvablePrivateAddressOnlyCharacteristic(BaseCharacteristic[int]):
17 """Resolvable Private Address Only characteristic (0x2AC9).
19 org.bluetooth.characteristic.resolvable_private_address_only
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 """
25 expected_length: int = 1
26 _template = Uint8Template()