OSDN Git Service

Display passkey when bonding
authorJakub Pawlowski <jpawlowski@google.com>
Thu, 23 Feb 2017 22:43:08 +0000 (14:43 -0800)
committerJakub Pawlowski <jpawlowski@google.com>
Fri, 24 Feb 2017 00:31:12 +0000 (00:31 +0000)
Test: manual
Change-Id: I238dfadf401b90d52caa4c381ea068b48091c092

service/adapter.cc

index 3ef3005..42f8d79 100644 (file)
@@ -300,6 +300,11 @@ class AdapterImpl : public Adapter, public hal::BluetoothInterface::Observer {
     }
   }
 
+  void SSPRequestCallback(bt_bdaddr_t*, bt_bdname_t*, uint32_t,
+                          bt_ssp_variant_t, uint32_t pass_key) override {
+    LOG(INFO) << "Passkey is: " << pass_key;
+  }
+
   void AclStateChangedCallback(bt_status_t status,
                                const bt_bdaddr_t& remote_bdaddr,
                                bt_acl_state_t state) override {