更新时间: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)