aboutsummaryrefslogtreecommitdiffstats
path: root/examples/direct_bt_scanner00
diff options
context:
space:
mode:
Diffstat (limited to 'examples/direct_bt_scanner00')
-rw-r--r--examples/direct_bt_scanner00/dbt_scanner00.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/direct_bt_scanner00/dbt_scanner00.cpp b/examples/direct_bt_scanner00/dbt_scanner00.cpp
index 63eb61c4..5cf9f996 100644
--- a/examples/direct_bt_scanner00/dbt_scanner00.cpp
+++ b/examples/direct_bt_scanner00/dbt_scanner00.cpp
@@ -267,7 +267,7 @@ int main(int argc, char *argv[])
}
{
std::shared_ptr<GATTHandler> gatt = device->getGATTHandler();
- if( nullptr != gatt && gatt->isOpen() ) {
+ if( nullptr != gatt && gatt->getIsConnected() ) {
std::shared_ptr<DeviceInformation> di = gatt->getDeviceInformation(primServices);
if( nullptr != di ) {
fprintf(stderr, " DeviceInformation: %s\n\n", di->toString().c_str());