显示远程Wifi

时间:2017-06-13 11:59:36

标签: ios objective-c networking wifi

我想在我的iOS应用中显示所有远程wifi网络。为此,我使用以下代码:

NSArray *interFaceNames = (__bridge_transfer id)CNCopySupportedInterfaces();
for (NSString *name in interFaceNames)
{
    NSDictionary *info = (__bridge_transfer id)CNCopyCurrentNetworkInfo((__bridge CFStringRef)name);
    NSLog(@"%@",info);
    NSLog(@"wifi info: bssid: %@, ssid:%@, ssidData: %@", info[@"BSSID"], info[@"SSID"],info[@"SSIDDATA"]);
}

但这只是给我连接的wifi网络信息。 如何显示所有远程Wifi-Network?

0 个答案:

没有答案