summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorPetre Eftime <[email protected]>2016-05-25 12:43:12 +0300
committerPetre Eftime <[email protected]>2016-06-30 12:54:55 +0300
commit04f2c650964f5a9fa55dc9a6b87cdd69f0a2b2a9 (patch)
tree5ebf389cbad78cb7fba8d2c5fa6a7fa396c3a98a /examples
parent34bd85eec952b8031dedd58882a9bcfeef57d848 (diff)
Add support for notifications
GATT Characteristics support push notifications as per BLE spec Other objects support most relevant "virtual" notifications (DBus properties changed) Signed-off-by: Petre Eftime <[email protected]>
Diffstat (limited to 'examples')
-rw-r--r--examples/esstinyb.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/esstinyb.cpp b/examples/esstinyb.cpp
index 1e34eccf..4f153aae 100644
--- a/examples/esstinyb.cpp
+++ b/examples/esstinyb.cpp
@@ -136,7 +136,6 @@ int main(int argc, char **argv)
bool bt_error = false;
/* Activate the temperature measurements by enabling notifications */
add_signal_handler();
- temp_characteristic->start_notify();
while (!bt_error && !interrupted) {
/* Read temperature data and display it */
try {
@@ -154,7 +153,6 @@ int main(int argc, char **argv)
bt_error = true;
}
}
- temp_characteristic->stop_notify();
delete temp_characteristic;
}