aboutsummaryrefslogtreecommitdiffstats
path: root/examples/direct_bt_scanner/dbt_scanner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/direct_bt_scanner/dbt_scanner.cpp')
-rw-r--r--examples/direct_bt_scanner/dbt_scanner.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/direct_bt_scanner/dbt_scanner.cpp b/examples/direct_bt_scanner/dbt_scanner.cpp
index dc245064..055aa7e1 100644
--- a/examples/direct_bt_scanner/dbt_scanner.cpp
+++ b/examples/direct_bt_scanner/dbt_scanner.cpp
@@ -47,6 +47,11 @@ class DeviceDiscoveryListener : public direct_bt::HCIDeviceDiscoveryListener {
fprintf(stderr, "Status HCIAdapter:\n");
fprintf(stderr, "%s\n", a.toString().c_str());
}
+ void deviceRemoved(direct_bt::HCIAdapter const &a, std::shared_ptr<direct_bt::HCIDevice> device) override {
+ fprintf(stderr, "****** REMOVED: %s\n", device->toString().c_str());
+ fprintf(stderr, "Status HCIAdapter:\n");
+ fprintf(stderr, "%s\n", a.toString().c_str());
+ }
};
static const uuid16_t _TEMPERATURE_MEASUREMENT(GattCharacteristicType::TEMPERATURE_MEASUREMENT);