class QBluetoothAddress#

The QBluetoothAddress class assigns an address to the Bluetooth device. More

Synopsis#

Methods#

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:

otherQBluetoothAddress

__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:

bQBluetoothAddress

Return type:

bool

Returns true if the two Bluetooth addresses a and b are not equal, otherwise returns false.

__lt__(b)#
Parameters:

bQBluetoothAddress

Return type:

bool

Returns true if the Bluetooth address a is less than b, otherwise returns false.

__eq__(b)#
Parameters:

bQBluetoothAddress

Return type:

bool

Returns true if the two Bluetooth addresses a and b are equal, otherwise returns false.

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.