The class represent a physical Bluetooth LE device. More...
Header: | #include <BluetoothLowEnergyDevice> |
Inherits: | |
Inherited By: |
BluetoothLowEnergyDevice(QObject * parent = nullptr) | |
virtual | ~BluetoothLowEnergyDevice() |
virtual QBluetoothAddress | address() const = 0 |
virtual bool | autoConnecting() const = 0 |
virtual void | connectDevice() = 0 |
virtual bool | connected() const = 0 |
virtual QLowEnergyController * | controller() const = 0 |
virtual void | disconnectDevice() = 0 |
virtual bool | discovered() const = 0 |
virtual QString | name() const = 0 |
virtual QList<QBluetoothUuid> | serviceUuids() const = 0 |
virtual void | setAutoConnecting(const bool & autoConnecting) = 0 |
void | autoConnectingChanged(const bool & autoConnecting) |
void | connectedChanged(const bool & connected) |
void | errorOccurred(const QLowEnergyController::Error & error) |
void | servicesDiscoveryFinished() |
void | stateChanged(const QLowEnergyController::ControllerState & state) |
The class represent a physical Bluetooth LE device.
See also BluetoothLowEnergyManager.
Constructs a new BluetoothLowEnergyDevice with the given parent.
[virtual]
BluetoothLowEnergyDevice::~BluetoothLowEnergyDevice()The virtual destructor of the BluetoothLowEnergyDevice.
[pure virtual]
QBluetoothAddress BluetoothLowEnergyDevice::address() constReturns the bluetooth adderss of this BluetoothLowEnergyDevice.
[pure virtual]
bool BluetoothLowEnergyDevice::autoConnecting() constReturns true, if this BluetoothLowEnergyDevice is reconnecting by it self when disconnected.
See also setAutoConnecting() and autoConnectingChanged.
[signal]
void BluetoothLowEnergyDevice::autoConnectingChanged(const bool & autoConnecting)This signal will be emitted whenever the autoConnecting state of this BluetoothLowEnergyDevice changed.
See also autoConnecting and setAutoConnecting.
[pure virtual]
void BluetoothLowEnergyDevice::connectDevice()Start connecting to this BluetoothLowEnergyDevice.
See also stateChanged and disconnectDevice.
[pure virtual]
bool BluetoothLowEnergyDevice::connected() constReturns true, if this BluetoothLowEnergyDevice is currently connected.
See also connectedChanged.
[signal]
void BluetoothLowEnergyDevice::connectedChanged(const bool & connected)This signal will be emitted whenever the connected state of this BluetoothLowEnergyDevice changed.
See also connected, connectDevice, and disconnectDevice.
[pure virtual]
QLowEnergyController * BluetoothLowEnergyDevice::controller() constReturns the QLowEnergyController object of this BluetoothLowEnergyDevice in order to provide the full Qt Bluetooth LE functionality.
[pure virtual]
void BluetoothLowEnergyDevice::disconnectDevice()Start disconnecting from this BluetoothLowEnergyDevice.
See also stateChanged and connectDevice.
[pure virtual]
bool BluetoothLowEnergyDevice::discovered() constReturns true, if all services of this BluetoothLowEnergyDevice have been discovered.
See also serviceUuids.
[signal]
void BluetoothLowEnergyDevice::errorOccurred(const QLowEnergyController::Error & error)This signal will be emitted whenever an error occured.
[pure virtual]
QString BluetoothLowEnergyDevice::name() constReturns the advertise name of this BluetoothLowEnergyDevice.
[pure virtual]
QList<QBluetoothUuid> BluetoothLowEnergyDevice::serviceUuids() constReturns the list of service uuids from this BluetoothLowEnergyDevice. The list contains only data, if the device has been discovered.
See also discovered.
[signal]
void BluetoothLowEnergyDevice::servicesDiscoveryFinished()This signal will be emitted whenever the service discovery for this BluetoothLowEnergyDevice is finished.
See also discovered and serviceUuids.
[pure virtual]
void BluetoothLowEnergyDevice::setAutoConnecting(const bool & autoConnecting)Sets the reconnecting behaviour of this BluetoothLowEnergyDevice. If the autoConnecting is true, the BluetoothLowEnergyDevice will reconnect by it self on disconnected.
See also autoConnectingChanged.
[signal]
void BluetoothLowEnergyDevice::stateChanged(const QLowEnergyController::ControllerState & state)This signal will be emitted whenever the state of this BluetoothLowEnergyDevice changed.