diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-09-16 20:19:41 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-09-17 09:57:57 -0700 |
commit | db38a7023db5ebf1c58e8bc652071d8f509bd001 (patch) | |
tree | a881dda446db6c91d78a01f695d0f708116944c4 /core/btdiscovery.h | |
parent | e5b7fb74b498679ceceff2f6fa1c707b27f17ed9 (diff) | |
download | subsurface-db38a7023db5ebf1c58e8bc652071d8f509bd001.tar.gz |
BLE: helper function to get QBtDeviceInfo from UUID
Right now this will only work if you scan for your BLE dive computer every
time. Ideally we should simply initiate a scan and look for that address if
it's not found in the hash.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/btdiscovery.h')
-rw-r--r-- | core/btdiscovery.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/btdiscovery.h b/core/btdiscovery.h index 71df24f24..160890c73 100644 --- a/core/btdiscovery.h +++ b/core/btdiscovery.h @@ -18,6 +18,9 @@ #include <QAndroidJniEnvironment> #endif +void saveBtDeviceInfo(const char* devaddr, QBluetoothDeviceInfo deviceInfo); +QBluetoothDeviceInfo getBtDeviceInfo(const char* devaddr); + class ConnectionListModel : public QAbstractListModel { Q_OBJECT public: |