- class QBluetoothAddress¶
The
QBluetoothAddress
class assigns an address to the Bluetooth device. More…Synopsis¶
Methods¶
def
__init__()
def
clear()
def
isNull()
def
__ne__()
def
__lt__()
def
__eq__()
def
toString()
def
toUInt64()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
This class holds a Bluetooth address in a platform- and protocol-independent manner.
- __init__()¶
Constructs a null Bluetooth Address.
- __init__(other)
- Parameters:
other –
QBluetoothAddress
- __init__(address)
- Parameters:
address – str
Constructs a new Bluetooth address and assigns
address
to it.The format of
address
can be either XX:XX:XX:XX:XX:XX or XXXXXXXXXXXX, where X is a hexadecimal digit. Case is not important.- __init__(address)
- Parameters:
address – int
Constructs a new Bluetooth address and assigns
address
to it.- clear()¶
Sets the Bluetooth address to 00:00:00:00:00:00.
- isNull()¶
- Return type:
bool
Returns true if the Bluetooth address is null, otherwise returns false.
- __ne__(b)¶
- Parameters:
- Return type:
bool
Returns
true
if the two Bluetooth addressesa
andb
are not equal, otherwise returnsfalse
.- __lt__(b)¶
- Parameters:
- Return type:
bool
Returns true if the Bluetooth address
a
is less thanb
, otherwise returns false.- __eq__(b)¶
- Parameters:
- Return type:
bool
Returns
true
if the two Bluetooth addressesa
andb
are equal, otherwise returnsfalse
.- toString()¶
- Return type:
str
Returns the Bluetooth address as a string of the form, XX:XX:XX:XX:XX:XX.
- toUInt64()¶
- Return type:
int
Returns this Bluetooth address as a quint64.