• BluetoothLowEnergyManager
  • BluetoothLowEnergyManager Class

    The BluetoothLowEnergyManager class helps to interact with Bluetooth LE devices. More...

    Header: #include <BluetoothLowEnergyManager>
    Inherits: HardwareResource
    Inherited By:

    Public Functions

    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

    Additional Inherited Members

    Detailed Description

    The BluetoothLowEnergyManager class helps to interact with Bluetooth LE devices.

    See also HardwareResource.

    Member Function Documentation

    BluetoothLowEnergyManager::BluetoothLowEnergyManager(QObject * parent = nullptr)

    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.