diff options
author | Sven Gothel <[email protected]> | 2020-07-02 08:32:57 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-07-02 08:32:57 +0200 |
commit | 102adbac329d96b91ca90ef7a55bef870db8f139 (patch) | |
tree | 29ffcd030ea0ee3010c3dffbedd2c06451b30b0f /examples | |
parent | 6f67d72923b31dd5db32227a0a8f46c11bc9a9f3 (diff) |
Example scanner10 (Java/C++): Show pingGATT OK on console for feedback
Diffstat (limited to 'examples')
-rw-r--r-- | examples/direct_bt_scanner10/dbt_scanner10.cpp | 1 | ||||
-rw-r--r-- | examples/java/ScannerTinyB10.java | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/examples/direct_bt_scanner10/dbt_scanner10.cpp b/examples/direct_bt_scanner10/dbt_scanner10.cpp index 6a275553..8c8736ab 100644 --- a/examples/direct_bt_scanner10/dbt_scanner10.cpp +++ b/examples/direct_bt_scanner10/dbt_scanner10.cpp @@ -322,6 +322,7 @@ static void processConnectedDevice(std::shared_ptr<DBTDevice> device) { exit: if( KEEP_CONNECTED ) { while( device->pingGATT() ) { + fprintf(stderr, "****** Processing Device: pingGATT OK: %s\n", device->getAddressString().c_str()); std::this_thread::sleep_for(std::chrono::milliseconds(1000)); } fprintf(stderr, "****** Processing Device: pingGATT failed: %s\n", device->getAddressString().c_str()); diff --git a/examples/java/ScannerTinyB10.java b/examples/java/ScannerTinyB10.java index 98c09b31..1c1e2ad1 100644 --- a/examples/java/ScannerTinyB10.java +++ b/examples/java/ScannerTinyB10.java @@ -256,6 +256,7 @@ public class ScannerTinyB10 { } if( KEEP_CONNECTED ) { while( device.pingGATT() ) { + System.err.println("****** Processing Device: pingGATT OK: "+device.getAddress()); try { Thread.sleep(1000); } catch (final InterruptedException e) { |