1
ご質問ありがとうございます。Android Bluetooth Ble防止ペアリクエスト
私は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);
しかし、コードが働いた後、ペアダイアログが表示されます、と私は実際にペアワークを必要としません私はクライアントに接続してデータを送信する必要があります(接続する必要のあるリモートデバイスは「不要」に設定されています)。ペアコールを避ける方法はありますか?
ありがとうございます!
ええと、私は本当にリモートデバイスのセキュリティ要求を取り消します。なぜなら、ios側はペアダイアログを今起動しないからです。 – Sunderr