以下成員源於類 QLowEnergyController 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
|
QLowEnergyController (const QBluetoothAddress & remoteDevice , QObject * parent = Q_NULLPTR) |
(obsolete)
|
QLowEnergyController (const QBluetoothDeviceInfo & remoteDeviceInfo , QObject * parent = Q_NULLPTR) |
(obsolete)
|
QLowEnergyController (const QBluetoothAddress & remoteDevice , const QBluetoothAddress & localDevice , QObject * parent = Q_NULLPTR) |
Constructs a new instance of this class with parent .
The remoteDevice must contain the address of the remote Bluetooth Low Energy device to which this object should attempt to connect later on.
The controller uses the local default Bluetooth adapter for the connection management.
Constructs a new instance of this class with parent .
The remoteDeviceInfo must contain the details of the remote Bluetooth Low Energy device to which this object should attempt to connect later on.
The controller uses the local default Bluetooth adapter for the connection management.
該函數在 Qt 5.5 引入。
Constructs a new instance of this class with parent .
The remoteDevice must contain the address of the remote Bluetooth Low Energy device to which this object should attempt to connect later on.
The connection is established via localDevice 。若 localDevice is invalid, the local default device is automatically selected. If localDevice specifies a local device that is not a local Bluetooth adapter, error () 被設為 InvalidBluetoothAdapterError once connectToDevice () 被調用。