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

5 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-03-18 11:17 +0000

1"""Mass Flow characteristic (0x2C17).""" 

2 

3from __future__ import annotations 

4 

5from .base import BaseCharacteristic 

6from .templates import Uint16Template 

7 

8 

9class MassFlowCharacteristic(BaseCharacteristic[int]): 

10 """Mass Flow characteristic (0x2C17). 

11 

12 org.bluetooth.characteristic.mass_flow 

13 

14 Mass flow in grams per second with a resolution of 1. 

15 A value of 0xFFFF represents 'value is not known'. 

16 

17 Raises: 

18 SpecialValueDetectedError: If raw value is a sentinel (e.g. 0xFFFF). 

19 """ 

20 

21 _template = Uint16Template()