Encapsulates the address of a BLE device.
Create a new Address object encapsulating the address value. The value itself can be one of:
The bytes that make up the device address (read-only).
Note that the
bytesobject returned is in little-endian order: The least significant byte is
address_bytes. So the address will appear to be reversed if you print the raw
bytesobject. If you print or use
Attributeobject itself, the address will be printed in the expected order. For example:
>>> import _bleio >>> _bleio.adapter.address <Address c8:1d:f5:ed:a8:35> >>> _bleio.adapter.address.address_bytes b'5\xa8\xed\xf5\x1d\xc8'
The address type (read-only).
Two Address objects are equal if their addresses and address types are equal.
Returns a hash for the Address data.
A publicly known address, with a company ID (high 24 bits)and company-assigned part (low 24 bits).
A randomly generated address that does not change often. It may never change or may change after a power cycle.
An address that is usable when the peer knows the other device’s secret Identity Resolving Key (IRK).
A randomly generated address that changes on every connection.