Click or drag to resize

wclWiFiDirectAdvertiser Class

The class allows to publish WiFi Direct advertisements.
Inheritance Hierarchy

Namespace: wclWiFi
Assembly: wclWiFiFramework (in wclWiFiFramework.dll) Version: 7.13.1.0 (7.13.1.0)
Syntax
public class wclWiFiDirectAdvertiser : wclWiFiDirectConnectionComponent

The wclWiFiDirectAdvertiser type exposes the following members.

Constructors
 NameDescription
Public methodwclWiFiDirectAdvertiser Creates a new WiFi Direct Advertiser component.
Top
Properties
 NameDescription
Public propertyActive Gets the WiFi Direct Advertiser state.
Public propertyAutonomousGroupOwnerEnabled Gets and sets the autonomous group owner state.
Public propertyCount Gets connected devices number.
Public propertyDiscoverability Gets and sets the listen state and whether the WiFi Direct device is discoverable.
Protected propertyHardwareAvailable Gets the Hardware Available flag.
(Inherited from wclCustomWiFiDirectComponent)
Public propertyItem Gets connected device.
Public propertyLegacy Gets and sets the WiFi Direct Advertiser legacy node state.
Public propertyMessageProcessing Gets and sets a message processing method that should be used by the WiFi Sniffer.
(Inherited from wclCustomWiFiDirectComponent)
Public propertyOpenAuth Gets and sets the Open Network flag.
Public propertyPassphrase Gets and sets the pass phrase for Legacy mode.
Protected propertyReceiver Gets the message receiver object.
(Inherited from wclCustomWiFiDirectComponent)
Public propertySsid Gets and sets the Service Set Identifier (SSID).
Top
Methods
 NameDescription
Protected methodDoAcceptDevice Fires the OnAcceptDevice event.
Protected methodDoDeviceConnected Fires the OnDeviceConnected event.
(Overrides wclWiFiDirectConnectionComponentDoDeviceConnected(wclWiFiDirectDevice, Int32))
Protected methodDoDeviceDisconnected Fires the OnDeviceDisconnected event.
(Overrides wclWiFiDirectConnectionComponentDoDeviceDisconnected(wclWiFiDirectDevice, Int32))
Protected methodDoPairCompleted Fires the OnPairComplete event.
(Inherited from wclWiFiDirectConnectionComponent)
Protected methodDoPairConfirm Fires the OnPairConfirm event.
(Inherited from wclWiFiDirectConnectionComponent)
Protected methodDoPairDisplayPin Fires the OnPairDisplayPin event.
(Inherited from wclWiFiDirectConnectionComponent)
Protected methodDoPairGetParams Fires the OnPairGetParams event.
(Inherited from wclWiFiDirectConnectionComponent)
Protected methodDoPairProvidePin Fires the OnPairProvidePin event.
(Inherited from wclWiFiDirectConnectionComponent)
Protected methodDoStarted Fires the OnStarted event.
Protected methodDoStopped Fires the OnStopped event.
Public methodEqualsDetermines whether the specified Object is equal to the current Object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Protected methodFindDevice Gets device object by its ID.
(Overrides wclWiFiDirectConnectionComponentFindDevice(String))
Public methodGetHashCodeServes as a hash function for a particular type.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodHardwareRemoved The method called when WiFi hardware has been switched off or removed.
(Overrides wclCustomWiFiDirectComponentHardwareRemoved)
Protected methodInitWlan Initializes native WLAN subsystem.
(Inherited from wclCustomWiFiDirectComponent)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodMessageReceived The method called when a new notification message received.
(Overrides wclWiFiDirectConnectionComponentMessageReceived(wclMessage))
Public methodStart Starts the WiFi Direct Advertisement.
Public methodStop Stops the WiFi Direct Advertisement.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Protected methodUninitWlan Uninitializes native WLAN subsystem.
(Inherited from wclCustomWiFiDirectComponent)
Top
Events
 NameDescription
Public eventOnAcceptDevice 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.
Public eventOnDeviceConnected The event fires when a remote WiFi enabled device has been connected to the WiFi Direct Advertiser.
(Inherited from wclWiFiDirectConnectionComponent)
Public eventOnDeviceDisconnected The event fires when the remote WiFi enabled device has been disconnected from the WiFi Direct Advertiser.
(Inherited from wclWiFiDirectConnectionComponent)
Public eventOnPairCompleted The event fires when pairing with a remote WiFi enabled device has been completed (with or without success).
(Inherited from wclWiFiDirectConnectionComponent)
Public eventOnPairConfirm The event fires when a remote WiFi enabled device requests simple pairing confirmation.
(Inherited from wclWiFiDirectConnectionComponent)
Public eventOnPairDisplayPin 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 wclWiFiDirectConnectionComponent)
Public eventOnPairGetParams The event fires when pairing parameters need to be set.
(Inherited from wclWiFiDirectConnectionComponent)
Public eventOnPairProvidePin The event fires when a remote WiFi enabled device requests Pin for pairing. An application must provide Pin.
(Inherited from wclWiFiDirectConnectionComponent)
Public eventOnStarted The event fires when the WiFi Direct Advertiser has been started with success.
Public eventOnStopped The event fires when the WiFi Direct Advertiser has been stopped.
Top
Remarks

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.

See Also