3

I want to get some uniqe information about access points. Such as MAC address and intensity. I try to do triangle with most three intensity wireless access point in objective c. I have xcode 4.3.2 and ios 5.1. How can I do this in ios.

1 Answers1

1

Look there

Try this :

CFArrayRef myArray = CNCopySupportedInterfaces();
CFDictionaryRef captiveNetWork = CNCopyCurrentNetworkInfo(CFArrayGetValueAtIndex(myArray, 0));
NSLog(@"Connected at : %@", captiveNetWork);
NSDictionary *myDictionnary = (__bridge NSDictionary *)captiveNetWork;
NSString *bssid = [myDictionnary objectForKey:@"BSSID"];
NSLog(@"BSSID : %@", bssid);
Community
  • 1
  • 1
Larme
  • 24,190
  • 6
  • 51
  • 81