简体   繁体   English

测量从wifi到Iphone / Ipad的信号强度

[英]Measuring Signal Strength from wifi to Iphone/Ipad

I want to get the current Wifi signal strength from an iOS device. 我想从iOS设备获得当前的Wifi信号强度。 A Google search reveals only solutions for Android devices. Google搜索仅显示Android设备的解决方案。 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不允许访问硬件,因此没有人可以通过他们的应用程序在dbm中检索设备的信号强度。

Is this correct? 这个对吗?

As you say, there is no way to do this as Apple doesn't allow apps access to the necessary hardware. 正如您所说,由于Apple不允许应用访问必要的硬件,因此无法执行此操作。 (There seems to have been a way to do it in iOS 5 but only using private APIs.) (似乎有一种方法可以在iOS 5中实现,但只使用私有API。)

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. 虽然这与Wi-Fi信号强度完全不同,但对于您的应用程序而言,这可能是一个合理的解决方法,具体取决于它应该做什么。

Here are some Stack Overflow questions dealing with measuring network throughput: 以下是一些Stack Overflow问题,涉及测量网络吞吐量:

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

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