mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-06 02:30:38 -08:00
example 'meshtastic': let user select device, remember latest one used, update for android 12
This commit is contained in:
parent
ae461af4ca
commit
96d6843267
29 changed files with 461 additions and 216 deletions
|
|
@ -16,17 +16,6 @@ QT::QT() : QObject() {
|
|||
ble = new BLE_ME;
|
||||
}
|
||||
|
||||
QVariant QT::setDevice(const QVariant& vName) {
|
||||
auto name = vName.toString();
|
||||
for (auto device : qAsConst(ble->devices)) {
|
||||
if (device.name().contains(name, Qt::CaseInsensitive)) {
|
||||
ble->setCurrentDevice(device);
|
||||
return vName;
|
||||
}
|
||||
}
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
QVariant QT::startDeviceDiscovery(const QVariant& vName) {
|
||||
auto name = vName.toString();
|
||||
if (!name.isNull()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue