summaryrefslogtreecommitdiffstats
path: root/core/qt-ble.h
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-07-03 21:21:02 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-04 23:46:07 +0900
commitd6b17fef08a6597582c4ea980ed3c7fcba410e43 (patch)
treee55861e3ff9caa0629b9fda1150c79da17ace876 /core/qt-ble.h
parent6031692a39820c0b5466d558e913272edabeb92a (diff)
downloadsubsurface-d6b17fef08a6597582c4ea980ed3c7fcba410e43.tar.gz
OSTC over BLE: filter and track OSTC credit traffic
1) As the OSTC sends data to the BLE central role (the SSRF client) over 2 characteristics, we have to filter the administrative credit data from the actual dive data that it received. The characteristcStateChanged function is adapted for this. 2) We have to be sure that the Terminal Client I/O is fully defined during opening the connecton to the OSTC. From 6d505b24f0c15 we can see that the last step in setting up the terminal interface is the grant of credits. This is done by writing to the proper (the only one, with id = 0x2902) descriptor of the credits RX characteristic. The here added slot is triggered on the completion of write of credits marking the final stage of the setup. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'core/qt-ble.h')
-rw-r--r--core/qt-ble.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/qt-ble.h b/core/qt-ble.h
index 6f63870a6..bbd56e586 100644
--- a/core/qt-ble.h
+++ b/core/qt-ble.h
@@ -29,6 +29,7 @@ public slots:
void addService(const QBluetoothUuid &newService);
void serviceStateChanged(QLowEnergyService::ServiceState s);
void characteristcStateChanged(const QLowEnergyCharacteristic &c, const QByteArray &value);
+ void characteristicWritten(const QLowEnergyCharacteristic &c, const QByteArray &value);
void writeCompleted(const QLowEnergyDescriptor &d, const QByteArray &value);
int setupHwTerminalIo(QList<QLowEnergyCharacteristic>);
private: