Measuring Signal Strength from wifi to Iphone/Ipad

孤街浪徒 提交于 2019-12-06 03:33:39

问题


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.

Is this correct?


回答1:


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.)

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.

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

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


来源:https://stackoverflow.com/questions/21715690/measuring-signal-strength-from-wifi-to-iphone-ipad

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!