bluez_peripheral.uuid16 module¶
- class bluez_peripheral.uuid16.UUID16(hex=None, bytes=None, int=None, uuid=None)[source]¶
Bases:
objectA container for BLE uuid16 values.
- Parameters:
hex (str | None) – A hexadecimal representation of a uuid16 or compatible uuid128.
bytes (bytes | None) – A 16-bit or 128-bit value representing a uuid16 or compatible uuid128.
int (int | None) – A numeric value representing a uuid16 (if < 2^16) or compatible uuid128.
uuid (UUID | None) – A compatible uuid128.
- classmethod is_in_range(uuid)[source]¶
Determines if a supplied uuid128 is in the allowed uuid16 range.