Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the iOS API for scanning available wi-fi networks

Tags:

ios

wifi

That's the question, but here's the long version: I'm working on a project that needs to mimic the connection workflow of the Belkin Wemo. The Wemo is a physical switch that can be controlled from an iOS app.

Belkin Wemo and app

This is how the setup works:

  1. The Wemo acts as a wifi router, it broadcasts an SSID, and you choose it from the list of available networks in your iPhone settings.
  2. You then choose your home wi-fi network from within the wemo app, given a list of available networks. and enter your network password. Presumably so the Wemo device can connect to your wi-fi router.
  3. The Wemo app then announces it is connecting, and then that it is setting up remote access.

Which brings me to: How does the Wemo app check for available networks -- aka, Is there an iOS API for scanning available networks, displaying them and working with them?

like image 830
inorganik Avatar asked Nov 13 '22 04:11

inorganik


1 Answers

There is no public API in iOS currently that can do this (used to be available pre iOS 5). You can check out a third party library like Stumbler which should help you achieve the viewing of networks: http://code.google.com/p/iphone-wireless/wiki/Stumbler

like image 133
savner Avatar answered Nov 15 '22 05:11

savner