example 'meshtastic': let user select device, remember latest one used, update for android 12

This commit is contained in:
pls.153 2023-06-22 15:09:15 +02:00
parent ae461af4ca
commit 96d6843267
29 changed files with 461 additions and 216 deletions

View file

@ -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()) {