Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mycompuser

macrumors member
Original poster
May 8, 2012
37
0
Hi All,

I have an application running on iPad 1 (OS version 5.1.1 and SDK version 6.0) in which I plan to add the capability to sniff and display the currently associated network's name and signal strength.

I use the below code to display the associated wifi network's ssid.

Code:
    CFArrayRef myArray = CNCopySupportedInterfaces();
    CFDictionaryRef myDict = CNCopyCurrentNetworkInfo(CFArrayGetValueAtIndex(myArray, 0));
    NSString *ssid = CFDictionaryGetValue(myDict, @"SSID");

Is there a way by which I can query for the signal strength of the associated network as well?

Found that the dictionary above contains another member "kCNNetworkInfoKeySSIDData" which as per the documentation is
"The key for the network’s SSID, which is represented as a CFDataRef object."
Not sure is the signal strength is made available in this member.

Are there any other api's made available which can be used to determine the signal strength?

Note:- Using of private api's is not an option.

Thanks & Regards.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.