What is the iOS API for scanning available Wi-Fi networks

This is a question, but here is a long version: I am working on a project that should simulate the Belkin Wemo connection workflow. Wemo is a physical switch that can be controlled from an iOS application.

Belkin Wemo and app

Here's how the setup works:

  • Wemo acts as a Wi-Fi router, it transmits an SSID, and you select it from the list of available networks on your iPhone settings.
  • Then you select your home wi-fi home network from the wemo app, given the list of available networks. and enter your network password. This is presumably why the Wemo device might connect to your Wi-Fi router.
  • The Wemo application announces that it is connecting, and then it sets up remote access.

What challenges me: how does the Wemo application check for available networks - aka: What is the iOS API for scanning available networks, displaying and working with them?

+4
source share
2 answers

In iOS, there is currently no open API that can do this (it was previously available before iOS 5). You can check out a third-party library like Stumbler that helps you get browsing the net: http://code.google.com/p/iphone-wireless/wiki/Stumbler

+1
source

As a question, it is very old, and Apple came up with new advances in iOS.

Now you can scan wi-fi using NEHotspotHelper ( Apple Doc ). But you still need permission from Apple to use this extension, since NEHotspotHelper is a special API with some recommendations ( link ).

Apple TQ and A

0
source

Source: https://habr.com/ru/post/1484499/


All Articles