BluetoothLEPreferredConnectionParameters 类

定义

表示蓝牙 LE 首选连接参数。

有关连接参数和 PHY 的详细信息,请参阅 蓝牙核心规范

public ref class BluetoothLEPreferredConnectionParameters sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 851968)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class BluetoothLEPreferredConnectionParameters final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 851968)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class BluetoothLEPreferredConnectionParameters
Public NotInheritable Class BluetoothLEPreferredConnectionParameters
继承
Object Platform::Object IInspectable BluetoothLEPreferredConnectionParameters
属性

Windows 要求

设备系列
Windows 11 (在 10.0.22000.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v14.0 中引入)
应用功能
bluetooth

属性

Balanced

一个静态属性,用于获取一组均衡的连接参数,在吞吐量和电源使用之间提供平衡。

ConnectionLatency

获取连接延迟。 连接延迟在连接事件中定义,范围从0x0000到0x01F3。

LinkTimeout

获取连接链接监督超时。 连接链路监督超时以 10 毫秒为增量定义,范围从 0x000A 到 0x0C80。 时间 (ms) = LinkTimeout * 10 毫秒。

MaxConnectionInterval

获取最大连接值。 连接增量定义为 1.25 毫秒的增量,范围从0x0006到0x0C80。 时间 (ms) = Interval * 1.25ms。

MinConnectionInterval

获取最小连接值。 连接增量定义为 1.25 毫秒的增量,范围从0x0006到0x0C80。 时间 (ms) = Interval * 1.25ms。

PowerOptimized

一个静态属性,它获取一组更节能的连接参数。 优化了以牺牲吞吐量为代价的电源使用。

注意

还允许同时连接到其他蓝牙设备。

ThroughputOptimized

一个静态属性,它获取一组更积极的连接参数,针对更快的吞吐量进行优化,但代价是消耗电源。

注意

此外,还可以减少可以与其他蓝牙设备建立的并发连接数。

适用于