111 [[nodiscard]] QString
dataFormat()
const override {
return u
"FLARM/NMEA"_s; }
120 [[nodiscard]] QString
icon()
const override {
return u
"/icons/material/ic_bluetooth.svg"_s; }
158 void onCharacteristicChanged(
const QLowEnergyCharacteristic &characteristic,
const QByteArray &newValue);
161 void onErrorOccurred(QLowEnergyController::Error error);
163 void onServiceDiscoveryFinished();
165 void onServiceStateChanged(QLowEnergyService::ServiceState newState);
167 void onStateChanged(QLowEnergyController::ControllerState state);
173 QBluetoothPermission m_bluetoothPermission;
176 QBluetoothDeviceInfo m_info;
178 QLowEnergyController* m_control {
nullptr};
180 QLowEnergyService* m_nordicUARTService {
nullptr};
181 QBluetoothUuid
const nordicUARTServiceUuid {
"6e400001-b5a3-f393-e0a9-e50e24dcca9e"};
182 QBluetoothUuid
const nordicUARTTxCharacteristicID {
"6e400003-b5a3-f393-e0a9-e50e24dcca9e"};
184 QLowEnergyService* m_simpleUARTService {
nullptr};
185 QBluetoothUuid
const simpleUARTServiceUuid {
"0000ffe0-0000-1000-8000-00805f9b34fb"};
186 QBluetoothUuid
const simpleUARTCharacteristicID {
"0000ffe1-0000-1000-8000-00805f9b34fb"};