1
내 질문에 감사드립니다. ,Android 블루투스 Ble 방지 페어 요청
BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(address);
if (device == null) {
Log.w(TAG, "Device not found. Unable to connect.");
return false;
}
// We want to directly connect to the device, so we are setting the autoConnect
// parameter to false.
if (mBluetoothGatt != null) {
mBluetoothGatt.close();
mBluetoothGatt = null;
}
mBluetoothGatt = device.connectGatt(this, false, mGattCallback);
을하지만 코드가 작동 후 쌍 대화가 표시됩니다, 나는 실제로 쌍 작업이 필요하지 않습니다 :
은 내가 BLE 연결하기 위해 안드로이드 개발자의 코드를 사용 난 단지 클라이언트를 연결 한 다음 datas (내가 필요로하는 원격 장치가 "필요 없음 쌍"으로 설정되었습니다)을 보내야합니다, 어떤 방법으로 쌍 전화를 피할 수 있습니까?
감사합니다.
음,하지만 ios 측에서 페어 대화 상자를 지금 시작하지 않기 때문에 원격 장치의 보안 요청을 취소 할 수 있습니다. – Sunderr