You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to connect to my WLAN, which got an '&' in its name.... But it simply never worked...
After a while (was already getting my head around the Managed Wifi API) I got the Idea to try it with a SSID Name not containing any special characters... et voila, this worked.
So in order to get the Simple Wifi API to work also with more exotic SSIDs simply add a HttpUtility.HtmlEncode() around the name in ProfileFactory.cs.
string name = HttpUtility.HtmlEncode(Encoding.ASCII.GetString(network.dot11Ssid.SSID, 0, (int)network.dot11Ssid.SSIDLength));
Hope this is usefull to anybody :)
The text was updated successfully, but these errors were encountered:
THX, i had to include the namespace: using System.Net;
And i used the class WebUtility because my application is no webapplication ;) string name = WebUtility.HtmlEncode(Encoding.ASCII.GetString(network.dot11Ssid.SSID, 0, (int)network.dot11Ssid.SSIDLength));
However, I found escaping the ssid name on its own wasn't sufficient for more exotic SSIDs (even using full html entity encoding). To fix connection for those, I had to also include the hex key in the profile to connect to those.
I was trying to connect to my WLAN, which got an '&' in its name.... But it simply never worked...
After a while (was already getting my head around the Managed Wifi API) I got the Idea to try it with a SSID Name not containing any special characters... et voila, this worked.
So in order to get the Simple Wifi API to work also with more exotic SSIDs simply add a HttpUtility.HtmlEncode() around the name in ProfileFactory.cs.
string name = HttpUtility.HtmlEncode(Encoding.ASCII.GetString(network.dot11Ssid.SSID, 0, (int)network.dot11Ssid.SSIDLength));
Hope this is usefull to anybody :)
The text was updated successfully, but these errors were encountered: