ios - Is there any chance I can detect the Wifi band connected with my iPhone, like 802.11ac, in Objective-C? -
forget grammar rules in question since english not mother tongue;
i want detect current wifi hotspot, if in 2.4ghz or 5ghz in ios environment,anyone got idea or possibility? here code below:
nsstring *wifiname = nil; cfarrayref myarray = cncopysupportedinterfaces(); if (myarray != nil) { cfdictionaryref mydict = cncopycurrentnetworkinfo(cfarraygetvalueatindex(myarray, 0)); if (mydict != nil) { nsdictionary *dict = (nsdictionary*)cfbridgingrelease(mydict); wifiname = [dict valueforkey:@"ssid"]; } } return wifiname;
as know cant native apis. there private api stumbler working wifi in more advanced way.
[warning]: if use private apis not able distribute app through appstore.
Comments
Post a Comment