mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-07 02:51:09 -08:00
example 'meshtastic': minor update (define device to be used)
This commit is contained in:
parent
9ee7030350
commit
c77d993496
11 changed files with 90 additions and 35 deletions
|
|
@ -27,7 +27,7 @@ void BLE::startDeviceDiscovery() {
|
|||
|
||||
void BLE::addDevice(const QBluetoothDeviceInfo& device) {
|
||||
if (deviceFilter(device)) {
|
||||
qDebug() << "device added: " << device.name();
|
||||
qDebug() << "device added:" << device.name() << device.address().toString();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -108,7 +108,7 @@ void BLE::serviceScanDone() {
|
|||
|
||||
void BLE::connectToService(const QString& uuid) {
|
||||
QLowEnergyService* service = nullptr;
|
||||
for (auto s: qAsConst(services)) {
|
||||
for (auto s : qAsConst(services)) {
|
||||
if (s->serviceUuid().toString() == uuid) {
|
||||
service = s;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue