测量从wifi到Iphone / Ipad的信号强度 [英] Measuring Signal Strength from wifi to Iphone/Ipad

查看:896
本文介绍了测量从wifi到Iphone / Ipad的信号强度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从iOS设备获得当前的Wifi信号强度。 Google搜索仅显示Android设备的解决方案。从文献中我得知Apple不允许访问硬件,因此没有人可以通过他们的应用程序在dbm中检索设备的信号强度。

I want to get the current Wifi signal strength from an iOS device. A Google search reveals only solutions for Android devices. From the literature I gather that Apple does not allow to access hardware and so nobody can retrieve the device's signal strength in dbm through their app.

这是正确的吗?

推荐答案

正如您所说,由于Apple不允许应用访问必要的硬件,因此无法执行此操作。 (似乎有一种方法可以在 iOS 5 但仅使用私有API。)

As you say, there is no way to do this as Apple doesn't allow apps access to the necessary hardware. (There seems to have been a way to do it in iOS 5 but only using private APIs.)

根据这篇文章,一些应用程序正在做 - 是衡量网络吞吐量。虽然这与Wi-Fi信号强度完全不同,但对于您的应用来说,这可能是一个合理的解决方法,具体取决于它应该做什么。

What you can do - and what, according to this article, some apps are doing - is measure network throughput instead. While that is in no way identical with Wi-Fi signal strength, it may be a reasonable workaround for your application, depending on what it is supposed to do.

这里有一些Stack Overflow问题涉及测量网络吞吐量:

Here are some Stack Overflow questions dealing with measuring network throughput:

  • Determine the speed on internet programmatically
  • Calculating Connection/Download Speed

这篇关于测量从wifi到Iphone / Ipad的信号强度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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