TwclBluetoothLeAdvertiserConnection Class

The virtual connection class enables Bluetooth LE advertising feature.

Namespace: wclBluetooth
TObject
  wclConnections.TwclCustomConnection
    wclBluetooth.TwclBluetoothLeAdvertiserConnection
type
 TwclBluetoothLeAdvertiserConnection = class(TwclCustomConnection)
 end;

The TwclBluetoothLeAdvertiserConnection type exposes the following members.

Show:
 NameDescription
Create(TwclBluetoothRadio)

Creates a new "virtual" Bluetooth LE Advertising connection object.

Destroy

Frees the Bluetooth LE Advertiser. (Overrides TwclCustomConnection.Destroy.)

Top
Show:
 NameDescription
Advertisements

Gets the Bluetooth LE advertisements list.

Advertising

Gets advertising state.

Anonymous

Specifies whether or not the device address is included in the advertisement header. By default, the address is included.

IncludeTxRssi

Specifies whether the transmit power level is included in the advertisement header.

Interval

Gets the advertising interval.

OnStarted

The event fires when the Bluetooth LE advertising started.

OnStopped

The event fires when the Bluetooth LE advertising stopped.

PreferredTxRssi

If specified, requests that the radio use the indicated transmit power level for the advertisement.

Radio

Gets the connection owner.

Receiver

Gets the connection message receiver object. (Inherited from TwclCustomConnection.)

ThreadId

Gets the connection's thread ID. (Inherited from TwclCustomConnection.)

UseExtendedAdvertisement

Specifies that the advertisement publisher should use the Extended Advertising format.

Top
Show:
 NameDescription
DoStarted

Fires the OnStarted event.

DoStopped

Fires the OnStopped event.

Enter

Enters the connection's critical section. (Inherited from TwclCustomConnection.)

HalStart

Implements a hardware-dependent code to start Bluetooth LE advertising.

HalStop

Implements a hardware-dependent code to stop Bluetooth LE advertising.

Leave

Exists *leaves) the connection's critical section. (Inherited from TwclCustomConnection.)

MessageReceived(TwclMessage)

The method called when a new notification message received. (Overrides TwclCustomConnection.MessageReceived(TwclMessage).)

Start(TList,Word)

Starts Bluetooth LE Advertising.

Stop

Stops Bluetooth LE Advertising.

Top

The class provides methods to enable Bluetooth LE advertising.

The feature is supported only on Windows 10 platform with Microsoft Bluetooth drivers or on any Windows platform with BLED112 Bluetooth dongle.