BluetoothGattServer.SetPreferredPhy 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
이 앱에 대한 기본 설정 연결 PHY를 설정합니다.
[Android.Runtime.Register("setPreferredPhy", "(Landroid/bluetooth/BluetoothDevice;III)V", "", ApiSince=26)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public void SetPreferredPhy(Android.Bluetooth.BluetoothDevice? device, Android.Bluetooth.BluetoothPhy txPhy, Android.Bluetooth.BluetoothPhy rxPhy, Android.Bluetooth.BluetoothPhyOption phyOptions);
[<Android.Runtime.Register("setPreferredPhy", "(Landroid/bluetooth/BluetoothDevice;III)V", "", ApiSince=26)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.SetPreferredPhy : Android.Bluetooth.BluetoothDevice * Android.Bluetooth.BluetoothPhy * Android.Bluetooth.BluetoothPhy * Android.Bluetooth.BluetoothPhyOption -> unit
매개 변수
- device
- BluetoothDevice
이 응답을 보낼 원격 디바이스
- txPhy
- BluetoothPhy
기본 송신기 PHY. 의 비트 OR BluetoothDevice#PHY_LE_1M_MASKBluetoothDevice#PHY_LE_2M_MASK및 BluetoothDevice#PHY_LE_CODED_MASK.
- rxPhy
- BluetoothPhy
기본 수신기 PHY. 의 비트 OR BluetoothDevice#PHY_LE_1M_MASKBluetoothDevice#PHY_LE_2M_MASK및 BluetoothDevice#PHY_LE_CODED_MASK.
- phyOptions
- BluetoothPhyOption
LE 코딩된 PHY에서 전송할 때 사용할 기본 코딩입니다. 다음 중 하나일 수 있습니다.BluetoothDevice#PHY_OPTION_NO_PREFERREDBluetoothDevice#PHY_OPTION_S2BluetoothDevice#PHY_OPTION_S8
- 특성
설명
이 앱에 대한 기본 설정 연결 PHY를 설정합니다. 이는 PHY 변경이 발생할지 여부는 다른 애플리케이션 기본 설정, 로컬 및 원격 컨트롤러 기능에 따라 달라지는 권장 사항일 뿐입니다. 컨트롤러는 이러한 설정을 재정의할 수 있습니다.
BluetoothGattServerCallback#onPhyUpdate 는 PHY 변경이 발생하지 않더라도 이 호출의 결과로 트리거됩니다. 원격 디바이스가 PHY를 업데이트할 때도 트리거됩니다.
이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.