Share via


BluetoothLEAdvertisementType Enum

Definition

Specifies the different types of Bluetooth LE advertisement payloads.

public enum class BluetoothLEAdvertisementType
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class BluetoothLEAdvertisementType
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum BluetoothLEAdvertisementType
var value = Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementType.connectableUndirected
Public Enum BluetoothLEAdvertisementType
Inheritance
BluetoothLEAdvertisementType
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
bluetooth

Fields

Name Value Description
ConnectableUndirected 0

The advertisement is undirected and indicates that the device is connectable and scannable. This advertisement type can carry data.

This corresponds with the ADV_IND type defined in the Bluetooth LE specifications.

ConnectableDirected 1

The advertisement is directed and indicates that the device is connectable but not scannable. This advertisement type cannot carry data.

This corresponds with the ADV_DIRECT_IND type defined in the Bluetooth LE specifications.

ScannableUndirected 2

The advertisement is undirected and indicates that the device is scannable but not connectable. This advertisement type can carry data.

This corresponds with the ADV_SCAN_IND type defined in the Bluetooth LE specifications.

NonConnectableUndirected 3

The advertisement is undirected and indicates that the device is not connectable nor scannable. This advertisement type can carry data.

This corresponds with the ADV_NONCONN_IND type defined in the Bluetooth LE specifications.

ScanResponse 4

This advertisement is a scan response to a scan request issued for a scannable advertisement. This advertisement type can carry data.

This corresponds with the SCAN_RSP type defined in the Bluetooth LE specifications.

Extended 5

This advertisement is a 5.0 extended advertisement. This advertisement type may have different properties, and is not necessarily directed, connected, scannable, nor a scan response.

See the advertisement event properties to determine the advertisement details.

Remarks

Version history

Windows version SDK version Value added
2004 19041 Extended

Applies to