Re: Which framework for Wifi?
Re: Which framework for Wifi?
- Subject: Re: Which framework for Wifi?
- From: Peter Burtis <email@hidden>
- Date: Tue, 27 May 2008 19:13:44 -0400
There is a private command line utility at the path:
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/
Current/Resources/airport
Calling it with NSTask works. If there's a better way I'd love to
know it.
It will give XML output with the right flag (-x) so it's quite
useable. You can use it to check network signal levels and get a list
of visible networks, you can join networks, create WPA keys from
passwords, restore user settings (which never quite works, when I do
it), etc. All the documentation that I know of that exists for this
utility can be found by calling it with the -h flag:
-z --disassociate Disassociate from any network
-i[<arg>] --ibss=[<arg>] Create IBSS
-x --xml Print info as XML
-s[<arg>] --scan=[<arg>] Perform a wireless broadcast scan.
Will perform a directed scan if the optional <arg> is provided
-r<arg> --repeats=<arg> Repeat the command the specified
number of times
-A[<arg>] --associate=[<arg>] Associate to network.
Will prompt for network name if arg is not specified
and if necessary, for a password if the network is using WEP
or WPA.
The following additional arguments may be specified with this
command:
--bssid=<arg> Specify BSSID to
associate with
--password=<arg> Specify a WEP
key or WPA password
-I --getinfo Print current wireless status, e.g.
signal info, BSSID, port type etc.
-P<arg> --psk=<arg> Create PSK from specified pass
phrase and SSID.
The following additional arguments must be specified with
this command:
--ssid=<arg> Specify SSID
when creating a PSK
-c[<arg>] --channel=[<arg>] Set arbitrary channel on the card
-h --help Show this help
Which is to say, there's no real documentation that I know of.
-Pete
On May 27, 2008, at 6:25 PM, Howard Shere wrote:
Which Apple framework would I use to interact with the wireless
settings? I need to be able to get a list of the current visible
networks, change networks, etc. from within my app.
Howard Shere
http://www.livejournal.com/users/realgreendragon/
Altair 8800a to Mac OS X so far...
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
@glossysheep.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden