Home  >  Q&A  >  body text

html5页面有没有办法获取附近wifi的SSID?

需求描述:我在手机端打开一个html5页面,希望在这个页面能够显示附近网络中各个wifi的SSID,就好像手机打开无线,然后手机上就会显示附近的无线网络列表一样?

这个需求有点奇葩,各位聊聊思路即可,如果有不折手段的解决方案,洗耳恭听

天蓬老师天蓬老师2741 days ago832

reply all(3)I'll reply

  • PHPz

    PHPz2017-04-17 11:43:40

    It cannot be obtained directly at this stage. http://stackoverflow.com/questions/17750175/can-javascript-get-the-ssi...

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 11:43:40

    1. Get the nearby SSID, which is done by the wireless network card’s receiver. This is a system resource
    2. Essentially, the browser is a sandbox, which is isolated and is certainly not allowed to access system resources
    3. So, it is difficult to achieve, this is my understanding.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 11:43:40

    I feel like even if you hang the app in the background, you may not be able to get it if you don’t have root
    Of course, you have obtained the first two points. Just get it directly from your daemon

    reply
    0
  • Cancelreply