diff --git a/lukeroberts/devicepluginlukeroberts.cpp b/lukeroberts/devicepluginlukeroberts.cpp index 6b2c634e..b88cdd8b 100644 --- a/lukeroberts/devicepluginlukeroberts.cpp +++ b/lukeroberts/devicepluginlukeroberts.cpp @@ -58,7 +58,7 @@ void DevicePluginLukeRoberts::discoverDevices(DeviceDiscoveryInfo *info) } foreach (const QBluetoothDeviceInfo &deviceInfo, reply->discoveredDevices()) { - if (deviceInfo.name().contains("LRF")) { + if (deviceInfo.serviceUuids().contains(customControlServiceUuid)) { DeviceDescriptor descriptor(modelFDeviceClassId, "Model F", deviceInfo.name() + " (" + deviceInfo.address().toString() + ")"); ParamList params; @@ -221,6 +221,12 @@ void DevicePluginLukeRoberts::executeBrowserItemAction(BrowserItemActionInfo *in } } +void DevicePluginLukeRoberts::onPluginConfigurationChanged(const ParamTypeId ¶mTypeId, const QVariant &value) +{ + Q_UNUSED(paramTypeId) + Q_UNUSED(value) +} + void DevicePluginLukeRoberts::onReconnectTimeout() { diff --git a/lukeroberts/lukeroberts.cpp b/lukeroberts/lukeroberts.cpp index 6f35e82f..fd3de04e 100644 --- a/lukeroberts/lukeroberts.cpp +++ b/lukeroberts/lukeroberts.cpp @@ -26,8 +26,6 @@ #include #include -static QBluetoothUuid customControlServiceUuid = QBluetoothUuid(QUuid("​44092840-0567-11E6-B862-0002A5D5C51B")); -static QBluetoothUuid externalApiEndpointCharacteristicUuid = QBluetoothUuid(QUuid("44092842-0567-11E6-B862-0002A5D5C51B")); LukeRoberts::LukeRoberts(BluetoothLowEnergyDevice *bluetoothDevice, QObject *parent) : diff --git a/lukeroberts/lukeroberts.h b/lukeroberts/lukeroberts.h index 4e210a49..1f328ba6 100644 --- a/lukeroberts/lukeroberts.h +++ b/lukeroberts/lukeroberts.h @@ -31,6 +31,8 @@ #include "typeutils.h" #include "hardware/bluetoothlowenergy/bluetoothlowenergydevice.h" +static QBluetoothUuid customControlServiceUuid = QBluetoothUuid(QUuid("​44092840-0567-11E6-B862-0002^")); +static QBluetoothUuid externalApiEndpointCharacteristicUuid = QBluetoothUuid(QUuid("44092842-0567-11E6-B862-0002A5D5C51B")); inline QByteArray &operator<<(QByteArray &l, quint8 r) {