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;
}
SSIDDATA is the hex representation of the SSID. Nothing else, as far as i know.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With