I'm using the simpleWifi library to implement connections to Wi-Fi access points and I'm trying to set a string value to a class object. Down below in my example, I'm trying to set the variable WifiPoint to a string value from another window form.
AccessPoint WifiPoint = frmSettings.wifi_selected_name.ToString();
SimpleWiFi class
namespace SimpleWifi
{
public class AccessPoint
{
public string Name { get; }
public uint SignalStrength { get; }
public bool HasProfile { get; }
public bool IsSecure { get; }
public bool IsConnected { get; }
public bool Connect(AuthRequest request, bool overwriteProfile = false);
public void ConnectAsync(AuthRequest request, bool overwriteProfile = false, Action<bool> onConnectComplete = null);
public void DeleteProfile();
public string GetProfileXML();
public bool IsValidPassword(string password);
public sealed override string ToString();
}
}
My attempt to do due this has resulted in the error showing "Cannot convert type 'string' to 'SimpleWifi.AccessPoint'