JamesSugrue
JamesSugrue

Reputation: 15011

Accessing iPhone WiFi Information via SDK

Is there a way using the iPhone SDK to get WiFi information? Things like Signal Strength, WiFi Channel and SSID are the main things I'm looking for.

Only interested in Wifi info, not cellular.

Upvotes: 25

Views: 48422

Answers (3)

mhl666
mhl666

Reputation: 874

According to this it's actually possible since iOS 4.1.

The function is called: CNCopyCurrentNetworkInfo()

Hope that helps.

Upvotes: 13

Gordon Wilson
Gordon Wilson

Reputation: 26384

Based on this bug report and this SO question, I'm guessing there's no supported way to do this atm.

EDIT: Chris mentioned WiFinder, which prompted me to do a little more digging. According to the WiFinder author's blog he used methods from the private Apple80211.framework. (The framework mentioned in the above linked SO question.) Apparently Apple will no longer allow these private API calls in apps, which is preventing him from updating WiFinder.

But, if you want to use them anyway, some kind folks have posted a list of discovered Apple80211 functions to google code.

It looks like Apple80211GetInfoCopy might do the trick.

Upvotes: 12

Chris Nava
Chris Nava

Reputation: 6802

The WiFinder iPhone application does it somehow...

Upvotes: 1

Related Questions