简体   繁体   English

在 iPhone 上检测 Wi-Fi 信号强度

[英]Detecting Wi-Fi signal strength on iPhone

I have seen this post which referes to private APIs to achieve what am after我看过这篇文章,它提到了私有 API 来实现我所追求的

Wifi strength in iPhone appiPhone 应用中的 Wifi 强度

but wanted to know if there is a legal way to do this.但想知道是否有合法的方式来做到这一点。 Looked around but could not find anything yet.环顾四周,但还没有找到任何东西。 I hope some one can give a hint希望有人能给个提示

Cheers AF干杯 AF

I've searched through all the relevant bits of the SDK and there is nothing.我已经搜索了 SDK 的所有相关位,但什么也没有。 And as you know, if it's not in the SDK and you use it your app will not get approved.如您所知,如果它不在 SDK 中并且您使用它,您的应用程序将不会获得批准。

I think you can use another way instead.我认为您可以改用另一种方式。 For example you can post a request.例如,您可以发布请求。 Calculate the time when you get the respond.计算得到回复的时间。

Maybe you post a request to http://stackoverflow.com And you get the respond in 1.0s, assign the wifi is very strong.也许您向http://stackoverflow.com发出请求并且您在 1.0 秒内得到响应,分配的 wifi 非常强大。 In 5.0s,assign the wifi is weak. 5.0s,分配wifi弱。

Maybe the way is not exact but is useful.也许方法不准确,但很有用。 sorry for my poor English:)对不起我糟糕的英语:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM