Click or drag to resize

wclBluetoothLeCustomAdvertisement Constructor

Creates new Bluetooth LE advertisement object.

Namespace: wclBluetooth
Assembly: wclBluetoothFramework (in wclBluetoothFramework.dll) Version: 7.17.12.0 (7.17.12.0)
Syntax
public wclBluetoothLeCustomAdvertisement(
	byte DataType,
	byte[] Data
)

Parameters

DataType  Byte

The Bluetooth LE advertisement data type. This is one of the data type defined in the wclUUIDs.

The following advertisement types are reserved and are not allowed:

* Empty flags (LE_GAP_AD_TYPE_NONE [0x00])

* Flags (LE_GAP_AD_TYPE_FLAGS [0x01])

* Shortened Local Name (LE_GAP_AD_TYPE_LOCAL_NAME_SHORT [0x08])

* Complete Local Name (LE_GAP_AD_TYPE_LOCAL_NAME_COMPLETE [0x09])

* LE Bluetooth Device Address (LE_GAP_AD_TYPE_ADDRESS [0x1B])

* LE Role (LE_GAP_AD_TYPE_ROLE [0x1C])

* Manufacturer Specific Information (LE_GAP_AD_TYPE_MANUFACTURER [0xFF])

The following advertisement types are system-reserved and are not allowed if the advertisement is used with Microsoft Bluetooth driver:

* Incomplete List of 16-bit Service UUIDs (LE_GAP_AD_TYPE_SERVICES_16_MORE [0x02])

* Complete List of 16-bit Service Class UUIDs * (LE_GAP_AD_TYPE_SERVICES_16_ALL [0x03])

* Incomplete List of 32-bit Service UUIDs (LE_GAP_AD_TYPE_SERVICES_32_MORE [0x04])

* Complete List of 32-bit Service Class UUIDs (LE_GAP_AD_TYPE_SERVICES_32_ALL [0x05])

* Incomplete List of 128-bit Service UUIDs (LE_GAP_AD_TYPE_SERVICES_128_MORE [0x06])

* Complete List of 128-bit Service Class UUIDs (LE_GAP_AD_TYPE_SERVICES_128_ALL [0x07])

* Tx Power Level (LE_GAP_AD_TYPE_TXPOWER [0x0A])

* Class of Device (LE_GAP_AD_TYPE_COD [0x0D])

* Simple Pairing Hash C192 (LE_GAP_AD_TYPE_PAIRING_HASH_C [0x0E])

* Simple Pairing Randomizer R192 (LE_GAP_AD_TYPE_PAIRING_RAND_R [0x0F])

* Security Manager TK Values (LE_GAP_AD_TYPE_DEVICE_ID [0x10])

* Security Manager Out-of-Band Flags (LE_GAP_AD_TYPE_SM_OOB_FLAGS [0x11])

* Slave Connection Interval Range (LE_GAP_AD_TYPE_CON_INTERVALS [0x12])

* Public Target Address (LE_GAP_AD_TYPE_PUBLIC_TARGET_ADDRESS [0x17])

* Random Target Address (LE_GAP_AD_TYPE_RANDOM_TARGET_ADDRESS [0x18])

* Appearance (LE_GAP_AD_TYPE_APPEARANCE [0x19])

* Advertising Interval (LE_GAP_AD_TYPE_ADV_INTERVAL [0x1A])

* Simple Pairing Hash C256 (LE_GAP_AD_TYPE_PAIRING_HASH_C_256 [0x1D])

* Simple Pairing Randomizer R256 (LE_GAP_AD_TYPE_PAIRING_RAND_R_256 [0x1E])

* 3D Information Data (LE_GAP_AD_TYPE_3D_INFO [0x3D])

Data  Byte
The Bluetooth LE advertisement raw data.
Exceptions
ExceptionCondition
wclEInvalidArgument
See Also