Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I turn WiFi on and off programmatically and change network? (Mac SDK) [closed]

How can I turn WiFi on and off programmatically and change network (WiFi) in the Mac SDK?

like image 861
LCT10 Avatar asked Feb 17 '23 12:02

LCT10


1 Answers

CoreWLAN Framework seems to fit your needs. There is even a sample code named CoreWLANWirelessManager

The CoreWLANWirelessManager application utilizes the CoreWLAN framework, which is the Objective-C public API for the Mac OS X IEEE 802.11 wireless interface. It gives developers an example of how to use the CoreWLAN API and exercises the functionality that the framework provides.This functionality includes scanning for networks, querying the wireless interface for static and dynamic parameters, toggling interface power, changing channels, association, and accessing the corresponding system configuration preferences for the given interface.

like image 196
alecail Avatar answered May 03 '23 16:05

alecail