Changeset 61fff713 in subsurface


Ignore:
Timestamp:
Jun 30, 2017, 1:13:38 PM (3 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
4604b6a
Parents:
c145cbd
git-author:
Dirk Hohndel <dirk@…> (06/29/17 22:53:07)
git-committer:
Dirk Hohndel <dirk@…> (06/30/17 13:13:38)
Message:

Android: mark BLE only paired devices

Signed-off-by: Dirk Hohndel <dirk@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/btdiscovery.cpp

    rc145cbd r61fff713  
    218218                                continue;
    219219                        }
    220 
     220                        jint btType = dev.callMethod<jint>("getType", "()I");
    221221                        result.address = dev.callObjectMethod("getAddress","()Ljava/lang/String;").toString();
     222                        if (btType == 2) // DEVICE_TYPE_LE
     223                                result.address = QString("LE:%1").arg(result.address);
    222224                        result.name = dev.callObjectMethod("getName", "()Ljava/lang/String;").toString();
    223 
     225                        qDebug() << "paired Device type" << btType << "with address" << result.address;
    224226                        btPairedDevices.append(result);
    225227                }
Note: See TracChangeset for help on using the changeset viewer.