Skip to content

Commit 502be09

Browse files
committed
fix
1 parent 3233a6d commit 502be09

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

_posts/2017-01-03-iOS_Wifilist.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,19 @@ We added a new template containing the Network Extension entitlements to your te
101101
```
102102
kNEHotspotHelperCommandTypeFilterScanList: 表示扫描到 Wifi 列表信息。
103103

104+
NEHotspotNetwork 里有如下信息:
105+
106+
>* SSID:Wifi 名称
107+
>* BSSID:站点的 MAC 地址
108+
>* signalStrength: Wifi信号强度,该值在0.0-1.0之间
109+
>* secure:网络是否安全 (不需要密码的 Wifi,该值为 false)
110+
>* autoJoined: 设备是否自动连接该 Wifi,目前测试自动连接以前连过的 Wifi 的也为 false 。
111+
>* justJoined:网络是否刚刚加入
112+
>* chosenHelper:HotspotHelper是否为网络的所选助手
113+
114+
[官方文档连接](https://developer.apple.com/reference/networkextension/nehotspotnetwork)
115+
116+
104117
### 6、获取Wifi列表回调
105118

106119
当你把上面的代码写完,并成功运行项目后,发现并没有Wifi列表的回调。因为你还没刷新Wifi列表,你需要:
@@ -128,6 +141,9 @@ kNEHotspotHelperCommandTypeFilterScanList: 表示扫描到 Wifi 列表信息
128141

129142
>* 使用 Demo 我就不提供了,你如果没有申请 NetworkExtension 权限,提供了 Demo 你也无法使用。
130143
144+
参考资源:
145+
[NEHotspotHelper NetworkExtension API iOS9.0](http://stackoverflow.com/questions/31704292/nehotspothelper-networkextension-api-ios9-0)
146+
131147
<br>
132148
转载请注明:[潘柏信的博客](http://baixin) » [Wifi 定位原理及 iOS Wifi 列表获取](http://baixin.io/2017/01/iOS_Wifilist/)
133149

0 commit comments

Comments
 (0)