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.
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);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.