The BluetoothLowEnergyManager class helps to interact with Bluetooth LE devices. More...
Header: | #include <BluetoothLowEnergyManager> |
Inherits: | HardwareResource |
Inherited By: |
BluetoothLowEnergyManager(QObject * parent = nullptr) | |
virtual | ~BluetoothLowEnergyManager() |
virtual BluetoothDiscoveryReply * | discoverDevices(int interval = 5000) = 0 |
virtual BluetoothLowEnergyDevice * | registerDevice(const QBluetoothDeviceInfo & deviceInfo, const QLowEnergyController::RemoteAddressType & addressType = QLowEnergyController::RandomAddress) = 0 |
virtual void | unregisterDevice(BluetoothLowEnergyDevice * bluetoothDevice) = 0 |
The BluetoothLowEnergyManager class helps to interact with Bluetooth LE devices.
See also HardwareResource.
Constructs a BluetoothLowEnergyManager with the given parent.
[virtual]
BluetoothLowEnergyManager::~BluetoothLowEnergyManager()The virtual destructor of the BluetoothLowEnergyManager.
[pure virtual]
BluetoothDiscoveryReply * BluetoothLowEnergyManager::discoverDevices(int interval = 5000)This method starts a Bluetooth discovery process running for interval milli seconds. Returns a BluetoothDiscoveryReply object which will emits the finished() signal when the discoveredDevices() list is ready.
[pure virtual]
BluetoothLowEnergyDevice * BluetoothLowEnergyManager::registerDevice(const QBluetoothDeviceInfo & deviceInfo, const QLowEnergyController::RemoteAddressType & addressType = QLowEnergyController::RandomAddress)This method should be used to register a bluetooth device in your DevicePlugin. Returns a new BluetoothLowEnergyDevice object with the given deviceInfo and addressType.
[pure virtual]
void BluetoothLowEnergyManager::unregisterDevice(BluetoothLowEnergyDevice * bluetoothDevice)This method should be used to unregister the given bluetoothDevice in your DevicePlugin if you don't need it any more.