Share via


BluetoothLEAdvertisementReceivedEventArgs 类

定义

BluetoothLEAdvertisementWatcher 上的 Received 事件提供数据。 当 BluetoothLEAdvertisementWatcher 对象上发生 Received 事件时,将创建 BluetoothLEAdvertisementReceivedEventArgs 实例。

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

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)
应用功能
bluetooth

注解

根据 BluetoothSignalStrengthFilter,当设备信号超出范围时,将发送“超出范围”事件,其中包含上次看到的广告数据, RawSignalStrengthInDBm 值设置为 -127。

版本历史记录

Windows 版本 SDK 版本 已添加值
2004 19041 BluetoothAddressType
2004 19041 IsAnonymous
2004 19041 IsConnectable
2004 19041 IsDirected
2004 19041 IsScannable
2004 19041 IsScanResponse
2004 19041 TransmitPowerLevelInDBm

属性

Advertisement

获取收到的蓝牙 LE 播发有效负载数据。

AdvertisementType

获取收到的蓝牙 LE 播发数据包的类型。

BluetoothAddress

获取发送蓝牙 LE 广告的设备蓝牙地址。

BluetoothAddressType

检索收到的播发的蓝牙地址类型。

IsAnonymous

指示是否从收到的播发中省略了蓝牙地址。

IsConnectable

指示收到的播发是否可连接。

IsDirected

指示收到的播发是否定向。

IsScannable

指示收到的播发是否可扫描。

IsScanResponse

指示收到的播发是否为扫描响应。

RawSignalStrengthInDBm

获取接收的信号强度指示器, (RSSI) 值(以 dBm 为单位)表示此接收的蓝牙 LE 播发事件。 此值可以是原始 RSSI 或筛选的 RSSI,具体取决于通过 BluetoothSignalStrengthFilter 配置的筛选设置。

Timestamp

获取 Received 事件发生时的时间戳。

TransmitPowerLevelInDBm

表示播发的接收传输功率。

适用于

另请参阅