5 #include <QBluetoothDeviceDiscoveryAgent>
6 #include <QBluetoothDeviceInfo>
7 #include <QLowEnergyController>
8 #include <QLowEnergyService>
33 void deviceDiscovered(
const QBluetoothDeviceInfo& device);
34 void deviceDiscoverFinished();
35 void deviceDiscoverError(QBluetoothDeviceDiscoveryAgent::Error);
36 void deviceConnected();
37 void deviceDisconnected();
39 void serviceDiscovered(
const QBluetoothUuid& gatt);
40 void serviceDiscoverFinished();
41 void controllerError(QLowEnergyController::Error error);
43 void receiveDeviceDisconnec(
const QLowEnergyDescriptor& d,
const QByteArray&
value);
45 void serviceStateChanged(QLowEnergyService::ServiceState
s);
46 void readData(
const QLowEnergyCharacteristic&
c,
const QByteArray&
value);
48 template<BLEProthesisInterface::SensorValueProtocol P>
void consumeData();
55 std::atomic_bool _killed{
false};
62 QBluetoothDeviceDiscoveryAgent* _deviceDiscoveryAgent{
nullptr};
63 QBluetoothDeviceInfo _currentDevice;
64 bool _deviceDiscovered{
false};
66 QLowEnergyController* _control{
nullptr};
68 bool _serviceDiscovered{
false};
69 QLowEnergyDescriptor _notificationDescTx;
70 QLowEnergyService* _service{
nullptr};