Click here to Skip to main content
15,889,315 members
Home / Discussions / C#
   

C#

 
GeneralRe: Data at the root level is invalid. Line 1, position 1. Pin
Dave Kreskowiak19-Nov-14 5:55
mveDave Kreskowiak19-Nov-14 5:55 
GeneralRe: Data at the root level is invalid. Line 1, position 1. Pin
ASPnoob19-Nov-14 6:45
ASPnoob19-Nov-14 6:45 
GeneralRe: Data at the root level is invalid. Line 1, position 1. Pin
PIEBALDconsult19-Nov-14 5:56
mvePIEBALDconsult19-Nov-14 5:56 
GeneralRe: Data at the root level is invalid. Line 1, position 1. Pin
ASPnoob19-Nov-14 6:54
ASPnoob19-Nov-14 6:54 
GeneralMessage Closed Pin
19-Nov-14 2:27
Kalyan Chandrasekharan19-Nov-14 2:27 
GeneralRe: Please take up this survey for .Net BDD tools Pin
BillWoodruff19-Nov-14 3:31
professionalBillWoodruff19-Nov-14 3:31 
GeneralRe: Please take up this survey for .Net BDD tools Pin
Gerry Schmitz19-Nov-14 3:49
mveGerry Schmitz19-Nov-14 3:49 
QuestionWifi scan, SSID, Signalstrength Pin
Nikolaj jensen19-Nov-14 0:45
Nikolaj jensen19-Nov-14 0:45 
I'm trying to use the Native Wifi for continuesly reading the signal strength.

If i run the code below in a fast loop, it quickly crashes with below msg. If I move the "client" object instantiation out, and only do that once, it does not crash. However it's not updating the value correctly. If I turn of the wifi on the remote device off, this is not recogniced until i shut down my application. Only then does my pc-wifi-client remove the remote wifi device from the list.

How can i continuesly read the signal strength of a specifi SSID ?


An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in DynamicData.exe. Additional information: An attempt was made to establish a session to a network server, but there are already too many sessions established to that server



C#
public uint Wifi()
       {
           signalStrength = 0;
           WlanClient client = new WlanClient();

           foreach (WlanClient.WlanInterface wlanIface in client.Interfaces)
           {

               Wlan.WlanAvailableNetwork[] networks = wlanIface.GetAvailableNetworkList(0);
               foreach (Wlan.WlanAvailableNetwork network in networks)
               {
                   if (GetStringForSSID(network.dot11Ssid) == "NAME")
                   {    
                        signalStrength = network.wlanSignalQuality;

                   }
               }


           }

          return signalStrength;
       }

AnswerRe: Wifi scan, SSID, Signalstrength Pin
Nagy Vilmos19-Nov-14 3:36
professionalNagy Vilmos19-Nov-14 3:36 
Questionasp.net certification Pin
Member 1124574618-Nov-14 20:35
Member 1124574618-Nov-14 20:35 
AnswerRe: asp.net certification Pin
Richard MacCutchan18-Nov-14 21:20
mveRichard MacCutchan18-Nov-14 21:20 
AnswerRe: asp.net certification Pin
ZurdoDev19-Nov-14 5:26
professionalZurdoDev19-Nov-14 5:26 
Questionserial communication Pin
Henri Aghaei18-Nov-14 7:29
Henri Aghaei18-Nov-14 7:29 
AnswerRe: serial communication Pin
OriginalGriff18-Nov-14 8:01
mveOriginalGriff18-Nov-14 8:01 
GeneralRe: serial communication Pin
Henri Aghaei19-Nov-14 6:44
Henri Aghaei19-Nov-14 6:44 
GeneralRe: serial communication Pin
OriginalGriff19-Nov-14 8:07
mveOriginalGriff19-Nov-14 8:07 
GeneralRe: serial communication Pin
Henri Aghaei19-Nov-14 9:01
Henri Aghaei19-Nov-14 9:01 
AnswerRe: serial communication Pin
BillWoodruff18-Nov-14 23:58
professionalBillWoodruff18-Nov-14 23:58 
GeneralRe: serial communication Pin
Henri Aghaei19-Nov-14 9:05
Henri Aghaei19-Nov-14 9:05 
GeneralRe: serial communication Pin
Henri Aghaei20-Apr-15 9:57
Henri Aghaei20-Apr-15 9:57 
AnswerRe: serial communication Pin
User 1106097919-Nov-14 0:48
User 1106097919-Nov-14 0:48 
GeneralRe: serial communication Pin
Henri Aghaei19-Nov-14 6:39
Henri Aghaei19-Nov-14 6:39 
GeneralRe: serial communication Pin
Henri Aghaei19-Nov-14 6:39
Henri Aghaei19-Nov-14 6:39 
GeneralRe: serial communication Pin
User 1106097919-Nov-14 6:43
User 1106097919-Nov-14 6:43 
GeneralRe: serial communication Pin
Henri Aghaei19-Nov-14 6:46
Henri Aghaei19-Nov-14 6:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.