mirror of
https://gitlab.com/eql/lqml.git
synced 2026-01-04 08:11:52 -08:00
example 'meshtastic': make device name filter editable
This commit is contained in:
parent
7350289076
commit
7cf29c2c8c
6 changed files with 27 additions and 5 deletions
|
|
@ -20,7 +20,7 @@ public:
|
|||
QLowEnergyCharacteristic fromNum;
|
||||
QLowEnergyCharacteristic toRadio;
|
||||
|
||||
QString nameFilter = QStringLiteral("meshtastic");
|
||||
QString nameFilter = "meshtastic";
|
||||
QLowEnergyDescriptor notifications;
|
||||
|
||||
bool deviceFilter(const QBluetoothDeviceInfo&) override;
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ QVariant QT::startDeviceDiscovery(const QVariant& vName) {
|
|||
|
||||
QVariant QT::setDeviceFilter(const QVariant& vName) {
|
||||
ble->nameFilter = vName.toString();
|
||||
return vName;
|
||||
}
|
||||
|
||||
QVariant QT::shortNames() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue