### Show Connected Network Information Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Retrieves and displays detailed information about connected wireless interfaces. This includes profile name, SSID, PHY type, authentication and cipher algorithms, signal quality, and transmission rates. It also attempts to get real-time connection quality metrics or RSSI if real-time quality is not supported. ```csharp public static void ShowConnectedNetworkInformation() { foreach (var interfaceId in NativeWifi.EnumerateInterfaces() .Where(x => x.State is InterfaceState.Connected) .Select(x => x.Id)) { // Following methods work only with connected wireless interfaces. var (result, cc) = NativeWifi.GetCurrentConnection(interfaceId); if (result is ActionResult.Success) { Trace.WriteLine($"Profile: {cc.ProfileName}"); Trace.WriteLine($"SSID: {cc.Ssid}"); Trace.WriteLine($"PHY type: 802.11{cc.PhyType.ToProtocolName()}"); Trace.WriteLine($"Authentication algorithm: {cc.AuthenticationAlgorithm}"); Trace.WriteLine($"Cipher algorithm: {cc.CipherAlgorithm}"); Trace.WriteLine($"Signal quality: {cc.SignalQuality}"); Trace.WriteLine($"Rx rate: {cc.RxRate} Kbps"); Trace.WriteLine($"Tx rate: {cc.TxRate} Kbps"); } // GetRealtimeConnectionQuality method works only on Windows 11 24H2. (result, var rcq) = NativeWifi.GetRealtimeConnectionQuality(interfaceId); if (result is ActionResult.Success) { Trace.WriteLine($"PHY type: 802.11{rcq.PhyType.ToProtocolName()}"); Trace.WriteLine($"Link quality: {rcq.LinkQuality}"); Trace.WriteLine($"Rx rate: {rcq.RxRate} Kbps"); Trace.WriteLine($"Tx rate: {rcq.TxRate} Kbps"); Trace.WriteLine($"MLO connection: {rcq.IsMultiLinkOperation}"); if (rcq.Links.Count > 0) { var link = rcq.Links[0]; Trace.WriteLine($"RSSI: {link.Rssi}"); Trace.WriteLine($"Frequency: {link.Frequency} MHz"); Trace.WriteLine($"Bandwidth: {link.Bandwidth} MHz"); } } else if (result is ActionResult.NotSupported) { (result, int rssi) = NativeWifi.GetRssi(interfaceId); if (result is ActionResult.Success) { Trace.WriteLine($"RSSI: {rssi}"); } } } } ``` -------------------------------- ### GetRealtimeConnetionQuality Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Gets wireless connection quality information (connected wireless LAN only, Windows 11 24H2 only). This method retrieves real-time connection quality metrics for the current Wi-Fi connection on specific Windows versions. ```APIDOC ## GetRealtimeConnetionQuality ### Description Gets wireless connection quality information (connected wireless LAN only, Windows 11 24H2 only). ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters [Parameters if applicable] ### Request Example [Request Example if applicable] ### Response #### Success Response - **Connection Quality**: Real-time connection quality metrics. ``` -------------------------------- ### GetCurrentConnection Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Gets wireless connection information (connected wireless LAN only). This method retrieves details about the currently active Wi-Fi connection. ```APIDOC ## GetCurrentConnection ### Description Gets wireless connection information (connected wireless LAN only). ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters [Parameters if applicable] ### Request Example [Request Example if applicable] ### Response #### Success Response - **Connection Information**: Details about the current wireless connection. ``` -------------------------------- ### GetRadio Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Gets wireless interface radio information of a specified wireless interface. This method retrieves the radio status for a given network interface. ```APIDOC ## GetRadio ### Description Gets wireless interface radio information of a specified wireless interface. ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters - **Interface ID** (string) - Required - The identifier of the wireless interface. ### Request Example [Request Example if applicable] ### Response #### Success Response - **Radio Information**: Details about the wireless interface's radio status. ``` -------------------------------- ### GetRssi Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Gets RSSI (connected wireless LAN only). This method retrieves the Received Signal Strength Indicator for the current Wi-Fi connection. ```APIDOC ## GetRssi ### Description Gets RSSI (connected wireless LAN only). ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters [Parameters if applicable] ### Request Example [Request Example if applicable] ### Response #### Success Response - **RSSI Value**: The Received Signal Strength Indicator value. ``` -------------------------------- ### Turn On Wireless Interface Radio Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Asynchronously attempts to turn on the software radio of a wireless interface. It checks both hardware and software states before attempting to enable the radio. ```csharp public static async Task TurnOnAsync() { var targetInterface = NativeWifi.EnumerateInterfaces() .FirstOrDefault(x => { var radioState = NativeWifi.GetRadio(x.Id)?.RadioStates.FirstOrDefault(); if (radioState is null) return false; if (!radioState.IsHardwareOn) // Hardware radio state is off. return false; return !radioState.IsSoftwareOn; // Software radio state is off. }); if (targetInterface is null) return false; try { return await Task.Run(() => NativeWifi.TurnOnRadio(targetInterface.Id)); } catch (UnauthorizedAccessException) { return false; } } ``` -------------------------------- ### Connect to a Wireless LAN Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Asynchronously connects to a wireless LAN. It selects the network with the best signal quality among available networks with a profile. ```csharp public static async Task ConnectAsync() { var availableNetwork = NativeWifi.EnumerateAvailableNetworks() .Where(x => !string.IsNullOrWhiteSpace(x.ProfileName)) .OrderByDescending(x => x.SignalQuality) .FirstOrDefault(); if (availableNetwork is null) return false; return await NativeWifi.ConnectNetworkAsync( interfaceId: availableNetwork.InterfaceInfo.Id, profileName: availableNetwork.ProfileName, bssType: availableNetwork.BssType, timeout: TimeSpan.FromSeconds(10)); } ``` -------------------------------- ### Enumerate Network SSIDs and Signal Qualities Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Retrieves SSIDs and signal qualities for currently available wireless LANs. Use this when more detailed network information is needed. ```csharp public static IEnumerable<(string ssidString, int signalQuality)> EnumerateNetworkSsidsAndSignalQualities() { return NativeWifi.EnumerateAvailableNetworks() .Select(x => (x.Ssid.ToString(), x.SignalQuality)); } ``` -------------------------------- ### Enumerate Available Network SSIDs Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Retrieves a list of SSIDs for currently available wireless LANs. SSIDs are represented as UTF-8 strings. ```csharp public static IEnumerable EnumerateNetworkSsids() { return NativeWifi.EnumerateAvailableNetworkSsids() .Select(x => x.ToString()); // UTF-8 string representation } ``` -------------------------------- ### EnumerateInterfaceConnections Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Enumerates wireless interface and related connection information. This method lists details about network interfaces and their current connection status. ```APIDOC ## EnumerateInterfaceConnections ### Description Enumerates wireless interface and related connection information. ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters [Parameters if applicable] ### Request Example [Request Example if applicable] ### Response #### Success Response - **Interface and Connection Information**: Details about wireless interfaces and their connections. ``` -------------------------------- ### EnumerateInterfaces Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Enumerates wireless interface information. This method provides details about the available wireless network interfaces on the system. ```APIDOC ## EnumerateInterfaces ### Description Enumerates wireless interface information. ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters [Parameters if applicable] ### Request Example [Request Example if applicable] ### Response #### Success Response - **Interface Information**: Details about wireless interfaces. ``` -------------------------------- ### ConnectNetwork Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Attempts to connect to the wireless LAN associated to a specified wireless profile. This method initiates a connection using a given Wi-Fi profile. ```APIDOC ## ConnectNetwork ### Description Attempts to connect to the wireless LAN associated to a specified wireless profile. ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters - **Profile Name** (string) - Required - The name of the wireless profile to connect with. ### Request Example [Request Example if applicable] ### Response #### Success Response - **Status**: Indicates if the connection attempt was successful. ``` -------------------------------- ### ConnectNetworkAsync Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Asynchronously attempts to connect to the wireless LAN associated to a specified wireless profile. This method initiates an asynchronous connection using a given Wi-Fi profile. ```APIDOC ## ConnectNetworkAsync ### Description Asynchronously attempts to connect to the wireless LAN associated to a specified wireless profile. ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters - **Profile Name** (string) - Required - The name of the wireless profile to connect with. ### Request Example [Request Example if applicable] ### Response #### Success Response - **Status**: Indicates if the asynchronous connection attempt was successful. ``` -------------------------------- ### EnumerateProfileNames Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Enumerates wireless profile names in preference order. This method lists the names of all saved Wi-Fi profiles. ```APIDOC ## EnumerateProfileNames ### Description Enumerates wireless profile names in preference order. ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters [Parameters if applicable] ### Request Example [Request Example if applicable] ### Response #### Success Response - **Profile Names**: A list of wireless profile names. ``` -------------------------------- ### TurnOnRadio Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Turns on the radio of a specified wireless interface (software radio state only). This method enables the software radio state for a given network interface. ```APIDOC ## TurnOnRadio ### Description Turns on the radio of a specified wireless interface (software radio state only). ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters - **Interface ID** (string) - Required - The identifier of the wireless interface. ### Request Example [Request Example if applicable] ### Response #### Success Response - **Status**: Indicates if the radio was turned on successfully. ``` -------------------------------- ### IsAutoConfig Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Checks if automatic configuration of a specified wireless interface is enabled. This method determines if auto-configuration is active for a given network interface. ```APIDOC ## IsAutoConfig ### Description Checks if automatic configuration of a specified wireless interface is enabled. ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters - **Interface ID** (string) - Required - The identifier of the wireless interface. ### Request Example [Request Example if applicable] ### Response #### Success Response - **IsAutoConfig Enabled** (boolean) - Indicates whether auto-configuration is enabled. ``` -------------------------------- ### EnumerateProfiles Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Enumerates wireless profile information in preference order. This method retrieves detailed information about saved Wi-Fi profiles. ```APIDOC ## EnumerateProfiles ### Description Enumerates wireless profile information in preference order. ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters [Parameters if applicable] ### Request Example [Request Example if applicable] ### Response #### Success Response - **Profile Information**: Detailed information about wireless profiles. ``` -------------------------------- ### Refresh Wireless LANs (Not Connected Only) Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Scans for available wireless LANs, but only considers networks that are not currently connected. This is useful for avoiding disruption to existing connections. ```csharp public static Task RefreshNotConnectedAsync() { return NativeWifi.ScanNetworksAsync( mode: ScanMode.OnlyNotConnected, null, null, timeout: TimeSpan.FromSeconds(10), CancellationToken.None); } ``` -------------------------------- ### Refresh Available Wireless LANs Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Initiates a scan for available wireless LANs across all interfaces. This operation is asynchronous and has a specified timeout. ```csharp public static Task RefreshAsync() { return NativeWifi.ScanNetworksAsync(timeout: TimeSpan.FromSeconds(10)); } ``` -------------------------------- ### EnumerateAvailableNetworks Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Enumerates wireless LAN information on available networks. This method provides detailed information about discoverable Wi-Fi networks. ```APIDOC ## EnumerateAvailableNetworks ### Description Enumerates wireless LAN information on available networks. ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters [Parameters if applicable] ### Request Example [Request Example if applicable] ### Response #### Success Response - **Network Information**: Detailed information about available wireless networks. ``` -------------------------------- ### EnumerateAvailableNetworkGroups Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Enumerates wireless LAN information on available networks and group of associated BSS networks. This method provides information about networks and their grouped BSS networks. ```APIDOC ## EnumerateAvailableNetworkGroups ### Description Enumerates wireless LAN information on available networks and group of associated BSS networks. ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters [Parameters if applicable] ### Request Example [Request Example if applicable] ### Response #### Success Response - **Network Group Information**: Detailed information about wireless networks and their BSS groups. ``` -------------------------------- ### ScanNetworksAsync Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Asynchronously requests wireless interfaces to scan (rescan) wireless LANs. This method initiates a scan for available Wi-Fi networks. ```APIDOC ## ScanNetworksAsync ### Description Asynchronously requests wireless interfaces to scan (rescan) wireless LANs. ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters [Parameters if applicable] ### Request Example [Request Example if applicable] ### Response #### Success Response - **Scan Results**: Indicates the completion of the network scan. ``` -------------------------------- ### EnumerateProfileRadios Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Enumerates wireless profile and related radio information in preference order. This method lists profiles along with their associated radio information. ```APIDOC ## EnumerateProfileRadios ### Description Enumerates wireless profile and related radio information in preference order. ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters [Parameters if applicable] ### Request Example [Request Example if applicable] ### Response #### Success Response - **Profile and Radio Information**: Details about wireless profiles and their radio configurations. ``` -------------------------------- ### EnumerateAvailableNetworkSsids Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Enumerates SSIDs of available wireless LANs. This method returns a list of network names (SSIDs) that are currently discoverable. ```APIDOC ## EnumerateAvailableNetworkSsids ### Description Enumerates SSIDs of available wireless LANs. ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters [Parameters if applicable] ### Request Example [Request Example if applicable] ### Response #### Success Response - **SSIDs**: A list of available wireless network SSIDs. ``` -------------------------------- ### SetProfile Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Sets (add or overwrite) the content of a specified wireless profile. This method allows adding new Wi-Fi profiles or updating existing ones. ```APIDOC ## SetProfile ### Description Sets (add or overwrite) the content of a specified wireless profile. ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters - **Profile Name** (string) - Required - The name of the wireless profile. - **Profile Content** (string) - Required - The XML content of the wireless profile. ### Request Example [Request Example if applicable] ### Response #### Success Response - **Status**: Indicates if the profile was set successfully. ``` -------------------------------- ### Enumerate Network Channels by RSSI Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Retrieves the channels of BSS networks that have an RSSI greater than a specified threshold. This helps identify used wireless channels. ```csharp public static IEnumerable EnumerateNetworkChannels(int rssiThreshold) { return NativeWifi.EnumerateBssNetworks() .Where(x => x.Rssi > rssiThreshold) .Select(x => x.Channel); } ``` -------------------------------- ### SetProfilePosition Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Sets the position of a specified wireless profile in preference order. This method allows reordering Wi-Fi profiles. ```APIDOC ## SetProfilePosition ### Description Sets the position of a specified wireless profile in preference order. ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters - **Profile Name** (string) - Required - The name of the wireless profile. - **New Position** (integer) - Required - The desired position in the preference order. ### Request Example [Request Example if applicable] ### Response #### Success Response - **Status**: Indicates if the profile position was updated successfully. ``` -------------------------------- ### EnumerateBssNetworks Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Enumerates wireless LAN information on BSS networks. This method provides details about Basic Service Set (BSS) networks. ```APIDOC ## EnumerateBssNetworks ### Description Enumerates wireless LAN information on BSS networks. ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters [Parameters if applicable] ### Request Example [Request Example if applicable] ### Response #### Success Response - **BSS Network Information**: Detailed information about BSS wireless networks. ``` -------------------------------- ### EnumerateConnectedNetworkSsids Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Enumerates SSIDs of connected wireless LANs. This method lists the SSIDs of networks the system is currently connected to. ```APIDOC ## EnumerateConnectedNetworkSsids ### Description Enumerates SSIDs of connected wireless LANs. ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters [Parameters if applicable] ### Request Example [Request Example if applicable] ### Response #### Success Response - **SSIDs**: A list of connected wireless network SSIDs. ``` -------------------------------- ### Delete Wireless Profile Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Deletes an existing wireless profile by its name. Profile name matching is case-sensitive. ```csharp public static bool DeleteProfile(string profileName) { var targetProfile = NativeWifi.EnumerateProfiles() .Where(x => profileName.Equals(x.Name, StringComparison.Ordinal)) .FirstOrDefault(); if (targetProfile is null) return false; return NativeWifi.DeleteProfile( interfaceId: targetProfile.InterfaceInfo.Id, profileName: profileName); } ``` -------------------------------- ### SetProfileEapXmlUserData Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Sets (add or overwrite) the EAP user credentials for a specified wireless profile. This method manages EAP user data for profiles. ```APIDOC ## SetProfileEapXmlUserData ### Description Sets (add or overwrite) the EAP user credentials for a specified wireless profile. ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters - **Profile Name** (string) - Required - The name of the wireless profile. - **EapXmlUserData** (string) - Required - The EAP user data in XML format. ### Request Example [Request Example if applicable] ### Response #### Success Response - **Status**: Indicates if the EAP user data was set successfully. ``` -------------------------------- ### RenameProfile Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Renames a specified wireless profile. This method allows changing the name of an existing Wi-Fi profile. ```APIDOC ## RenameProfile ### Description Renames a specified wireless profile. ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters - **Old Profile Name** (string) - Required - The current name of the wireless profile. - **New Profile Name** (string) - Required - The new name for the wireless profile. ### Request Example [Request Example if applicable] ### Response #### Success Response - **Status**: Indicates if the profile was renamed successfully. ``` -------------------------------- ### DeleteProfile Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Deletes a specified wireless profile. This method removes an existing Wi-Fi profile from the system. ```APIDOC ## DeleteProfile ### Description Deletes a specified wireless profile. ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters - **Profile Name** (string) - Required - The name of the wireless profile to delete. ### Request Example [Request Example if applicable] ### Response #### Success Response - **Status**: Indicates if the profile was deleted successfully. ``` -------------------------------- ### TurnOffRadio Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Turns off the radio of a specified wireless interface (software radio state only). This method disables the software radio state for a given network interface. ```APIDOC ## TurnOffRadio ### Description Turns off the radio of a specified wireless interface (software radio state only). ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters - **Interface ID** (string) - Required - The identifier of the wireless interface. ### Request Example [Request Example if applicable] ### Response #### Success Response - **Status**: Indicates if the radio was turned off successfully. ``` -------------------------------- ### DisconnectNetworkAsync Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Asynchronously disconnects from the wireless LAN associated to a specified wireless interface. This method initiates an asynchronous disconnection for a given interface. ```APIDOC ## DisconnectNetworkAsync ### Description Asynchronously disconnects from the wireless LAN associated to a specified wireless interface. ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters - **Interface ID** (string) - Required - The identifier of the wireless interface. ### Request Example [Request Example if applicable] ### Response #### Success Response - **Status**: Indicates if the asynchronous disconnection was successful. ``` -------------------------------- ### DisconnectNetwork Source: https://github.com/emoacht/managednativewifi/blob/master/README.md Disconnects from the wireless LAN associated to a specified wireless interface. This method terminates the current Wi-Fi connection for a given interface. ```APIDOC ## DisconnectNetwork ### Description Disconnects from the wireless LAN associated to a specified wireless interface. ### Method [Method Signature or HTTP Method if applicable] ### Endpoint [Endpoint Path if applicable] ### Parameters - **Interface ID** (string) - Required - The identifier of the wireless interface. ### Request Example [Request Example if applicable] ### Response #### Success Response - **Status**: Indicates if the disconnection was successful. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.