Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what SSIDDATA in ios contains

I am using following code to fetch the connected WIFI with my ios device. I want to know what data does SSIDDATA contains and how to read this data.

    -(id)fetchSSIDInfo
    {
    NSArray *ifs = (__bridge NSArray *)(CNCopySupportedInterfaces());
    NSLog(@"%s: Supported interfaces: %@", __func__, ifs);
    id info = nil;
        for (NSString *ifnam in ifs) {
        info = (__bridge id)(CNCopyCurrentNetworkInfo((__bridge CFStringRef)ifnam));
        NSLog(@"%s: %@ => %@", __func__, ifnam, info);
        if (info && [info count]) {
            break;
        }
        }
    return info;
}
like image 246
Dinesh Avatar asked Nov 01 '13 08:11

Dinesh


1 Answers

SSIDDATA is the hex representation of the SSID. Nothing else, as far as i know.

like image 155
Nikita Pestrov Avatar answered Oct 26 '22 03:10

Nikita Pestrov