File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,19 @@ We added a new template containing the Network Extension entitlements to your te
101
101
```
102
102
kNEHotspotHelperCommandTypeFilterScanList: 表示扫描到 Wifi 列表信息。
103
103
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
+
104
117
### 6、获取Wifi列表回调
105
118
106
119
当你把上面的代码写完,并成功运行项目后,发现并没有Wifi列表的回调。因为你还没刷新Wifi列表,你需要:
@@ -128,6 +141,9 @@ kNEHotspotHelperCommandTypeFilterScanList: 表示扫描到 Wifi 列表信息
128
141
129
142
> * 使用 Demo 我就不提供了,你如果没有申请 NetworkExtension 权限,提供了 Demo 你也无法使用。
130
143
144
+ 参考资源:
145
+ [ NEHotspotHelper NetworkExtension API iOS9.0] ( http://stackoverflow.com/questions/31704292/nehotspothelper-networkextension-api-ios9-0 )
146
+
131
147
<br >
132
148
转载请注明:[ 潘柏信的博客] ( http://baixin ) » [ Wifi 定位原理及 iOS Wifi 列表获取] ( http://baixin.io/2017/01/iOS_Wifilist/ )
133
149
You can’t perform that action at this time.
0 commit comments