summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-05-24 20:24:46 +0200
committerSven Gothel <[email protected]>2020-05-24 20:24:46 +0200
commit0b5d5f2f594ba4566b9cdba6a73aebb4c626cf3a (patch)
tree19019d1459c5f189f5c2103348007f0e0cce1c24 /examples
parent461c54a3212f003cbb5f9a0afaeef5fb80a9f57e (diff)
Fix listener notice for discovering and connection (enabled and add connected)
Diffstat (limited to 'examples')
-rw-r--r--examples/direct_bt_scanner00/dbt_scanner00.cpp4
-rw-r--r--examples/direct_bt_scanner01/dbt_scanner01.cpp4
-rw-r--r--examples/direct_bt_scanner10/dbt_scanner10.cpp2
3 files changed, 5 insertions, 5 deletions
diff --git a/examples/direct_bt_scanner00/dbt_scanner00.cpp b/examples/direct_bt_scanner00/dbt_scanner00.cpp
index 74ffe83c..d880f6b9 100644
--- a/examples/direct_bt_scanner00/dbt_scanner00.cpp
+++ b/examples/direct_bt_scanner00/dbt_scanner00.cpp
@@ -57,7 +57,7 @@ class MyAdapterStatusListener : public AdapterStatusListener {
}
void discoveringChanged(DBTAdapter const &a, const bool enabled, const bool keepAlive, const uint64_t timestamp) override {
- fprintf(stderr, "****** DISCOVERING: enable %d, keepAlive %d: %s\n", enabled, keepAlive, a.toString().c_str());
+ fprintf(stderr, "****** DISCOVERING: enabled %d, keepAlive %d: %s\n", enabled, keepAlive, a.toString().c_str());
(void)timestamp;
}
@@ -79,7 +79,7 @@ class MyAdapterStatusListener : public AdapterStatusListener {
(void)timestamp;
}
void deviceConnectionChanged(std::shared_ptr<DBTDevice> device, const bool connected, const uint64_t timestamp) override {
- fprintf(stderr, "****** CONNECTION: %d: %s\n", connected, device->toString().c_str());
+ fprintf(stderr, "****** CONNECTION: connected %d: %s\n", connected, device->toString().c_str());
fprintf(stderr, "Status Adapter:\n");
fprintf(stderr, "%s\n", device->getAdapter().toString().c_str());
(void)timestamp;
diff --git a/examples/direct_bt_scanner01/dbt_scanner01.cpp b/examples/direct_bt_scanner01/dbt_scanner01.cpp
index 2d0f590c..9b72ba99 100644
--- a/examples/direct_bt_scanner01/dbt_scanner01.cpp
+++ b/examples/direct_bt_scanner01/dbt_scanner01.cpp
@@ -56,7 +56,7 @@ class MyAdapterStatusListener : public AdapterStatusListener {
}
void discoveringChanged(DBTAdapter const &a, const bool enabled, const bool keepAlive, const uint64_t timestamp) override {
- fprintf(stderr, "****** DISCOVERING: enable %d, keepAlive %d: %s\n", enabled, keepAlive, a.toString().c_str());
+ fprintf(stderr, "****** DISCOVERING: enabled %d, keepAlive %d: %s\n", enabled, keepAlive, a.toString().c_str());
(void)timestamp;
}
@@ -78,7 +78,7 @@ class MyAdapterStatusListener : public AdapterStatusListener {
(void)timestamp;
}
void deviceConnectionChanged(std::shared_ptr<DBTDevice> device, const bool connected, const uint64_t timestamp) override {
- fprintf(stderr, "****** CONNECTION: %d: %s\n", connected, device->toString().c_str());
+ fprintf(stderr, "****** CONNECTION: connected %d: %s\n", connected, device->toString().c_str());
fprintf(stderr, "Status Adapter:\n");
fprintf(stderr, "%s\n", device->getAdapter().toString().c_str());
(void)timestamp;
diff --git a/examples/direct_bt_scanner10/dbt_scanner10.cpp b/examples/direct_bt_scanner10/dbt_scanner10.cpp
index 456ad669..367b163f 100644
--- a/examples/direct_bt_scanner10/dbt_scanner10.cpp
+++ b/examples/direct_bt_scanner10/dbt_scanner10.cpp
@@ -149,7 +149,7 @@ class MyAdapterStatusListener : public AdapterStatusListener {
}
void discoveringChanged(DBTAdapter const &a, const bool enabled, const bool keepAlive, const uint64_t timestamp) override {
- fprintf(stderr, "****** DISCOVERING: enable %d, keepAlive %d: %s\n", enabled, keepAlive, a.toString().c_str());
+ fprintf(stderr, "****** DISCOVERING: enabled %d, keepAlive %d: %s\n", enabled, keepAlive, a.toString().c_str());
(void)timestamp;
}