Can I switch between WiFi networks in WM 6 and .NET CF v3.5?
I am writing a .NET Compact Framework v3.5 application for a Windows Mobile 6 device. I would like to be able to switch between two different WiFi networks through C #. The first network is an Ad-Hoc wireless network with another device nearby, and the second network is any other available WiFi network configured on a Windows Mobile device (usually it will be public / corporate WiFi with a known SSID)
The scenario I need is to do the following through C # /. NET code on a Windows mobile device:
- Establish an Ad-Hoc WiFi connection on another device.
- Chat with another device for a while
- Disconnect the Ad-Hoc connection and check if there is an available WiFi network that has public Internet access (for example, I can get a response from http://www.google.com or something like that)
- Connect to an available network in the previous step # 3
- Send / receive some data on the public Internet
- Drop the “public” network and connect to the Ad-Hoc network from step # 1.
source
share