TwclWiFiDirectAdvertiser Class

The class allows to publish WiFi Direct advertisements.

Namespace: wclWiFi
type
 TwclWiFiDirectAdvertiser = class(TwclWiFiDirectConnectionComponent)
 end;

The TwclWiFiDirectAdvertiser type exposes the following members.

Show:
 NameDescription
Create(TComponent)

Creates a new WiFi Direct Advertiser component. (Overrides TwclWiFiDirectConnectionComponent.Create(TComponent).)

Destroy

Frees the WiFi Direct Advertiser component. (Overrides TwclCustomWiFiDirectComponent.Destroy.)

Top
Show:
 NameDescription
Active

Gets the WiFi Direct Advertiser state.

AutonomousGroupOwnerEnabled

Gets and sets the autonomous group owner state.

Count

Gets connected devices number.

Devices[Integer]

Gets connected device.

Discoverability

Gets and sets the listen state and whether the WiFi Direct device is discoverable.

HardwareAvailable

Gets the Hardware Available flag. (Inherited from TwclCustomWiFiDirectComponent.)

Legacy

Gets and sets the WiFi Direct Advertiser legacy node state.

OnStarted

The event fires when the WiFi Direct Advertiser has been started with success.

OnStopped

The event fires when the WiFi Direct Advertiser has been stopped.

OpenAuth

Gets and sets the Open Network flag.

Passphrase

Gets and sets the pass phrase for Legacy mode.

Receiver

Gets the message receiver object. (Inherited from TwclCustomWiFiDirectComponent.)

Ssid

Gets and sets the Service Set Identifier (SSID).

Top
Show:
 NameDescription
DoAcceptDevice(TwclWiFiDirectDevice,Boolean)

Fires the OnAcceptDevice event.

DoDeviceConnected(TwclWiFiDirectDevice,Integer)
DoDeviceDisconnected(TwclWiFiDirectDevice,Integer)
DoPairCompleted(TwclWiFiDirectDevice,Integer)

Fires the OnPairComplete event. (Inherited from TwclWiFiDirectConnectionComponent.)

DoPairConfirm(TwclWiFiDirectDevice,Boolean)

Fires the OnPairConfirm event. (Inherited from TwclWiFiDirectConnectionComponent.)

DoPairDisplayPin(TwclWiFiDirectDevice,string)

Fires the OnPairDisplayPin event. (Inherited from TwclWiFiDirectConnectionComponent.)

DoPairGetParams(TwclWiFiDirectDevice,Smallint,TwclWiFiDirectConfigurationMethods,TwclWiFiDirectPairingProcedure)

Fires the OnPairGetParams event. (Inherited from TwclWiFiDirectConnectionComponent.)

DoPairProvidePin(TwclWiFiDirectDevice,string)

Fires the OnPairProvidePin event. (Inherited from TwclWiFiDirectConnectionComponent.)

DoStarted

Fires the OnStarted event.

DoStopped

Fires the OnStopped event.

FindDevice(string)

Gets device object by its ID. (Overrides TwclWiFiDirectConnectionComponent.FindDevice(string).)

HardwareRemoved

The method called when WiFi hardware has been switched off or removed. (Overrides TwclCustomWiFiDirectComponent.HardwareRemoved.)

InitWlan

Initializes native WLAN subsystem. (Inherited from TwclCustomWiFiDirectComponent.)

MessageReceived(TwclMessage)

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

Start

Starts the WiFi Direct Advertisement.

Stop

Stops the WiFi Direct Advertisement.

UninitWlan

Uninitializes native WLAN subsystem. (Inherited from TwclCustomWiFiDirectComponent.)

Top
Show:
 NameDescription
OnAcceptDevice

The event fires when a remote WiFi enable device connects to the WiFi Direct Advertiser and an application must accept or reject the connection request.

OnDeviceConnected

The event fires when a remote WiFi enabled device has been connected to the WiFi Direct Advertiser. (Inherited from TwclWiFiDirectConnectionComponent.)

OnDeviceDisconnected

The event fires when the remote WiFi enabled device has been disconnected from the WiFi Direct Advertiser. (Inherited from TwclWiFiDirectConnectionComponent.)

OnPairCompleted

The event fires when pairing with a remote WiFi enabled device has been completed (with or without success). (Inherited from TwclWiFiDirectConnectionComponent.)

OnPairConfirm

The event fires when a remote WiFi enabled device requests simple pairing confirmation. (Inherited from TwclWiFiDirectConnectionComponent.)

OnPairDisplayPin

The event fires when a remote WiFi enabled device requests the Display Pin pairing procedure. An application must show the Pin received from the event. (Inherited from TwclWiFiDirectConnectionComponent.)

OnPairGetParams

The event fires when pairing parameters need to be set. (Inherited from TwclWiFiDirectConnectionComponent.)

OnPairProvidePin

The event fires when a remote WiFi enabled device requests Pin for pairing. An application must provide Pin. (Inherited from TwclWiFiDirectConnectionComponent.)

Top

Windows 10, version 1607, supports Mobile Hotspot, an enhanced version of the mobile broadband tethering feature. If Mobile Hotspot is running, the functionality of this class is not supported. It is likely to stop working.

The Mobile Hotspot and WiFi Direct technology cannot run at the same time. Mobile Hotspot takes precedence over all WiFi Direct scenarios.