0
我想從接入點獲得一些uniqe信息,例如mac地址(bssid)。我試試這個代碼,但是當我連接網絡它只是工程..從ios接入點獲取ssid
- (id)fetchSSIDInfo
{
NSArray *ifs = (id)CNCopySupportedInterfaces();
NSLog(@"%s: Supported interfaces: %@", __func__, ifs);
id info = nil;
for (NSString *ifnam in ifs) {
info = (id)CNCopyCurrentNetworkInfo((CFStringRef)ifnam);
NSLog(@"%s: %@ => %@", __func__, ifnam, info);
if (info && [info count]) {
break;
}
[info release];
}
[ifs release];
return [info autorelease];
}
我怎樣才能從BSSID接入點在我身邊,即使我沒有連接,這可能嗎?
http://stackoverflow.com/a/5198968/1992125 – GameDevGuru 2013-11-01 07:28:21