问题
How would one go about scanning for WiFi networks with Java? I have been looking on google but the only snippets I could find were for the Android OS.
回答1:
As far as I know, standard (non-Android, J2SE) Java doesn't permit this:
- Finding SSID of a wireless network with Java
Android, as you know, has a Wifi SDK:
- http://developer.android.com/reference/android/net/wifi/WifiManager.html
As does Windows/.Net:
How to scan the wireless devices which exist on the network
http://msdn.microsoft.com/en-us/library/bb204766%28v=vs.85%29.aspx
来源:https://stackoverflow.com/questions/7125752/scanning-for-wifi-with-java