c# - Checking possibility of Wifi connectivity with Windows Mobile Pocket PC -
i'm new .net framework 3.5. in c# project i'm using smart device framework
. task enable wifi connectivity on button click in windows form (synchronize mobile web part i.e data web mobile)
in windows mobile 5.0 pocket pc
don't see option wlan connections in settings --> connections
following list of network adaptors showing in windows mobile 5.0 pocket pc see when searched
i configured ne2000 compatible ethernet driver. am going right way ?
also have added opennetcf.net library
in reference of project took other stack overflow links , microsoft documentation: building wi-fi discovery application
below code snippet :
/// check available network interfaces foreach (opennetcf.net.networkinformation.inetworkinterface networkinterface in opennetcf.net.networkinformation.wirelessnetworkinterface.getallnetworkinterfaces()) { /// network interface ne20001 if (networkinterface.description.equals("ne20001")) { /// display current configurations textbox1.text += ("description: " + networkinterface.description + "\r\n"); textbox1.text += ("ip: " + networkinterface.currentipaddress + "\r\n"); textbox1.text += ("id: " + networkinterface.id + "\r\n"); textbox1.text += ("status: " + networkinterface.interfaceoperationalstatus + "\r\n"); networkinterface.bind(); try { inw = (opennetcf.net.networkinformation.wirelesszeroconfignetworkinterface)networkinterface; ///< obtain wireless 0 configuration interface } catch { textbox1.text = "network interface not wireless 0 configuration"; ///< possible reason can image in wince 7 } accesspointcollection = inw.nearbyaccesspoints; textbox1.text += ("wireless network available are:\r\n"); /// available wireless network foreach (opennetcf.net.networkinformation.iaccesspoint iaccesspoint in accesspointcollection) { combobox1.items.add(iaccesspoint.name); textbox1.text += (iaccesspoint.name + " - signal strength: " + iaccesspoint.signalstrength + " (" + iaccesspoint.signalstrength.decibels + "db)\r\n"); } } }
i inw value null
below, because has no wirelesszeroconfignetworkinterface.
inw = (opennetcf.net.networkinformation.wirelesszeroconfignetworkinterface)networkinterface;
so inw.nearbyaccesspoints not possible wirelesszeroconfignetworkinterface.
1) how configure wifi connections
in windows mobile 5.0 pocket pc in .net3.5
2) how know if in current windows mobile 5.0 pocket pc wifi enabled or not.
3) going wrong somewhere in above code i.e wirelesszeroconfignetworkinterface required enabling wifi ?
any suggestions helpful.
Comments
Post a Comment