TwclMobileHotspot Class

The class allows to control Mobile Hotspot feature on Windows 10 platform.

Namespace: wclWiFi
TComponent
  wclWiFi.TwclMobileHotspot
type
 TwclMobileHotspot = class(TComponent)
 end;

The TwclMobileHotspot type exposes the following members.

Show:
 NameDescription
Create(TComponent)

Creates a Mobile Hotspot component.

Destroy

Frees the component.

Top
Show:
 NameDescription
Active

Gets the Mobile Hotspot component state.

OnClosed

The event fires when the Mobile Hotspot has been closed.

OnOpened

The event fires when the Mobile Hotspot has been opened.

Top
Show:
 NameDescription
Close

Closes the Mobile Hotspot API and uninitializes the component.

DisableNoConnectionsTimeout

Disables the NoConnections timeout.

DoClosed

Fires the OnClosed event.

DoOpened

Fires the OnOpened event.

EnableNoConnectionsTimeout

Enables the NoConnections timeout. This means that Mobile Hotspot turns off automatically in 5 minutes after the last peer of the tethering connection goes away.

GetBand(TwclMobileHotspotBand)

Gets the wireless frequency band of the WiFi Mobile Hotspot.

GetClientCount(Cardinal)

Gets the current number of connected clients on the Mobile Hotspot.

GetClients(TwclMobileHotspotClients)

Gets the list of connected clients.

GetMaxClientCount(Cardinal)

Gets the maximum number of client connections over a Mobile Hotspot.

GetPassphrase(string)

Gets the AP passphrase.

GetSsid(string)

Gets the AP SSID.

GetState(TwclMobileHotspotState)

Gets the current Mobile Hotspot state.

IsBandSupported(TwclMobileHotspotBand,Boolean)

Checks whether the WiFi Mobile Hotspot supports the specified wireless frequency band.

IsNoConnectionsTimeoutEnabled(Boolean)

Gets a value indicating whether the NoConnections timeout is enabled. If enabled, Mobile Hotspot turns off automatically in 5 minutes after the last peer of the tethering connection goes away.

Open

Opens the Mobile Hotspot API and initializes the component.

SetBand(TwclMobileHotspotBand)

Sets the wireless frequency band of the WiFi Mobile Hotspot. Use IsBandSupported to check whether the WiFi adapter allows configuring a specific frequency band.

SetPassphrase(string)

Sets the AP passphrase.

SetSsid(string)

Sets the AP SSID.

Start

Starts the Mobile Hotspot.

Stop

Stops the Mobile Hotspot.

Top