Difference between revisions of "MobileWiFi.framework"

From iPhone Development Wiki
Jump to: navigation, search
(Added MobileWiFi.framework page)
 
(Remove useless code)
Line 9: Line 9:
 
<source lang="c">
 
<source lang="c">
 
WiFiManagerRef manager = WiFiManagerClientCreate();
 
WiFiManagerRef manager = WiFiManagerClientCreate();
CFArrayRef devices = WiFiManagerClientCopyDevices();
 
WiFiDeviceClientRef client = (WiFiDeviceClientRef)CFArrayGetValueAtIndex(devices, 0);
 
  
 
CFArrayRef networks = WiFiManagerClientCopyNetworks(manager);
 
CFArrayRef networks = WiFiManagerClientCopyNetworks(manager);
Line 17: Line 15:
  
 
CFRelease(manager);
 
CFRelease(manager);
CFRelease(devices);
 
 
CFRelease(networks);
 
CFRelease(networks);
 
</source>
 
</source>
 
{{Navbox Frameworks}}
 
{{Navbox Frameworks}}

Revision as of 20:15, 21 February 2013

MobileWiFi.framework
Private Framework
Availabile 3.0 – present


MobileWiFi is the framework that manages WiFi functionality on iOS. It replaces the obsolete Apple80211 framework. MobileWiFi.framework has a C API, and a unfinished reverse-engineered header is available here.

Retrieve a list of known networks

WiFiManagerRef manager = WiFiManagerClientCreate();

CFArrayRef networks = WiFiManagerClientCopyNetworks(manager);

NSLog(@"networks: %@", networks);

CFRelease(manager);
CFRelease(networks);