GATT连接后如何与BLE设备配对

时间:2016-08-21 13:45:56

标签: bluetooth-lowenergy android-bluetooth gatt

如何在GATT连接后与BLE设备配对,因为我必须手动完成,然后我才能从BLE设备获得响应。

bluetoothComponent.gatt = tempdevice.connectGatt(getApplicationContext(), false, 
                                                 bluetoothComponent.callbacknew);

请帮助我了解如何在与BLE设备连接后与BLE设备配对。

1 个答案:

答案 0 :(得分:0)

可以根据您的要求https://developer.android.com/reference/android/bluetooth/BluetoothDevice.html#createBond()完成 外围设备也可以启动配对。