Class WirelessAPConfiguration
Configuration of wireless network SOft AP based on the 802.11 standard.
Inherited Members
Namespace: System.Net.NetworkInformation
Assembly: System.Net.dll
Syntax
public class WirelessAPConfiguration
Remarks
This class is exclusive of nanoFramework and does not exist on the UWP API.
Constructors
WirelessAPConfiguration(uint)
Initializes a new instance of the WirelessAPConfiguration class.
Declaration
public WirelessAPConfiguration(uint id)
Parameters
Type | Name | Description |
---|---|---|
uint | id | The ID of the wireless configuration. |
Properties
Authentication
Specifies the type of authentication used for the wireless AP.
Declaration
public AuthenticationType Authentication { get; set; }
Property Value
Type | Description |
---|---|
AuthenticationType |
Channel
Channel to use for AP.
Declaration
public byte Channel { get; set; }
Property Value
Type | Description |
---|---|
byte |
Encryption
Specifies the type of encryption used for the wireless AP.
Declaration
public EncryptionType Encryption { get; set; }
Property Value
Type | Description |
---|---|
EncryptionType |
Id
Contains the ID of the wireless AP configuration.
Declaration
public uint Id { get; }
Property Value
Type | Description |
---|---|
uint |
MaxConnections
Maximum number of client connections
Declaration
public byte MaxConnections { get; set; }
Property Value
Type | Description |
---|---|
byte |
Options
Contains flags for the Soft AP
Declaration
public WirelessAPConfiguration.ConfigurationOptions Options { get; set; }
Property Value
Type | Description |
---|---|
WirelessAPConfiguration.ConfigurationOptions |
Password
Contains the network passphrase used for clients to connect to Soft AP
Declaration
public string Password { get; set; }
Property Value
Type | Description |
---|---|
string |
Radio
Specifies the type of radio used by the wireless network adapter.
Declaration
public RadioType Radio { get; set; }
Property Value
Type | Description |
---|---|
RadioType |
Ssid
Contains the Soft AP SSID.
Declaration
public string Ssid { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
DeAuthStation(int)
DeAuthorise a connected station
Declaration
public void DeAuthStation(int stationIndex)
Parameters
Type | Name | Description |
---|---|---|
int | stationIndex | The index of station to De-Auth or 0 to De-Auth all stations. |
GetAllWirelessAPConfigurations()
Retrieves an array of all of the wireless Soft AP network configurations.
Declaration
public static WirelessAPConfiguration[] GetAllWirelessAPConfigurations()
Returns
Type | Description |
---|---|
WirelessAPConfiguration[] | An array containing all of the wireless 802.11 AP network configuration stored in the device. |
GetConnectedStations()
Returns an array of information about the connected stations.
Declaration
public WirelessAPStation[] GetConnectedStations()
Returns
Type | Description |
---|---|
WirelessAPStation[] |
GetConnectedStations(int)
Returns information about the a connected station.
Declaration
public WirelessAPStation GetConnectedStations(int stationIndex)
Parameters
Type | Name | Description |
---|---|---|
int | stationIndex | The index of station to get information about. |
Returns
Type | Description |
---|---|
WirelessAPStation |
SaveConfiguration()
Validate and save the wireless Soft AP configuration information.
Declaration
public void SaveConfiguration()
Remarks
Checks the length of SSID is 32 or less. Password length is between 8 and 64 if not an open Authentication.