本文介绍了CNCopySupportedInterfaces列出了所有已配置的Wifi接口信息或仅当前有效的一个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 CNCopySupportedInterfaces API来获取Wifi接口的SSID。但我对API CNCopySupportedInterfaces 感到怀疑。此API是否会提供所有已配置的Wifi接口的列表,或仅提供当前处于活动状态的接口或有关当时可访问(但未配置)的所有接入点的信息?

I want to use the CNCopySupportedInterfaces API to get the SSID of Wifi interface. But I just have doubt about the API CNCopySupportedInterfaces. Will this API provide a list of all configured Wifi interfaces or only one which is currently active or info about all access points that are reachable (but not configured) at that moment?

推荐答案

CNCopySupportedInterfaces CNC的当前网络 ,将只提供您连接的wifi名称和详细信息,没有使用私人图书馆(Apple80211)它不会为您提供其他可到达的无线网络列表或其他信息。

CNCopySupportedInterfacesand CNCopyCurrentNetworkInfo of CaptiveNetwork, will gives only your connected wifi name and detail, Without the use of private library (Apple80211) it will not provide you other reachable wifi list or other info.

您可以请参阅:以获取更多信息。

You can refer to: How do I use CaptiveNetwork to get the current WiFi Hotspot Name for more information.

您可以查看如果您对Apple80211感兴趣。有一个示例应用,它可以完全满足您的需求。但是,如果要发布到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.

这篇关于CNCopySupportedInterfaces列出了所有已配置的Wifi接口信息或仅当前有效的一个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 04:27