如何在GATT连接后与BLE设备配对,因为我必须手动完成,然后我才能从BLE设备获得响应。
bluetoothComponent.gatt = tempdevice.connectGatt(getApplicationContext(), false,
bluetoothComponent.callbacknew);
请帮助我了解如何在与BLE设备连接后与BLE设备配对。
答案 0 :(得分:0)
可以根据您的要求https://developer.android.com/reference/android/bluetooth/BluetoothDevice.html#createBond()完成 外围设备也可以启动配对。