且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

带引脚配对的Android BLE外设

更新时间:2023-01-24 07:38:28

在使用特定特征时,可以通过

You can force the device has to be paired, when using specific characteristics by protecting them with PERMISSION_READ_ENCRYPTED_MITM or PERMISSION_WRITE_ENCRYPTED_MITM.

客户端/中间端可以通过调用 BluetoothDevice来强制配对.creteBond().

The client/central side can force pairing by calling BluetoothDevice.creteBond().

配对方法本身由蓝牙协议决定(请参见此线程)

The pairing method itself is determinated by the bluetooth protocol (see this thread)