查找可用的Wi-Fi网络 [英] Find available wi-fi networks

查看:128
本文介绍了查找可用的Wi-Fi网络的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何找到并列出范围内的所有wi-fi网络?

How can I find and list all the wi-fi networks in range?

推荐答案

据我所知,你可以使用 CNCopySupportedInterfaces 和 CNCopyCurrentNetworkInfo 获取有关当前连接的Wi-Fi的信息developer.apple.com/library/ios/#documentation/SystemConfiguration/Reference/CaptiveNetworkRef/Reference/reference.htmlrel =nofollow noreferrer> CaptiveNetwork 。您可以参考:如何使用CaptiveNetwork获取当前的WiFi热点名称以获取更多信息。

As far as I know you can get the information about the current connected Wi-Fi using CNCopySupportedInterfaces and CNCopyCurrentNetworkInfo of CaptiveNetwork. You can refer to: How do I use CaptiveNetwork to get the current WiFi Hotspot Name for more information.

根据 iPhone获取所有没有私人图书馆的SSID列表


如果不使用私人图书馆(Apple80211),您只能获得设备当前连接的网络的SSID。

Without the use of private library (Apple80211) you can only get the SSID of the network your device is currently connected to.

你可以查看 iphone-wireless project 如果您对Apple80211感兴趣。有一个示例应用Stumber,它可以完全满足您的需求。但是,如果要发布到App Store,则不能在应用程序中使用此功能,因为它使用私有API。 Apple拒绝那些使用私有API的应用。

You could have a look at iphone-wireless project if you are interested in Apple80211. There exists a sample app "Stumber" which does exactly what you want. But you cannot use this in your app if you want to publish to App Store because as it uses private APIs. Apple rejects apps those use private APIs.

这篇关于查找可用的Wi-Fi网络的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆