Re: How to detect Wifi device?
Re: How to detect Wifi device?
- Subject: Re: How to detect Wifi device?
- From: Quinn <email@hidden>
- Date: Wed, 20 Jul 2005 10:01:22 +0100
At 21:40 -0400 19/7/05, Jay Koutavas wrote:
What is/are the recommended System Configuration query/queries to
make to determine if the machine has an active wifi internet
connection?
I'd look in the "Setup" domain for an service whose "Interface"
dictionary (the key pattern would be something like
"Setup:/Network/Service/<serviceID>/Interface") contains a "Type" key
of value "Ethernet" and a "Hardware" key of value "AirPort". That
will tell you whether AirPort is configured. You can then look for a
matching entry in the State domain to see whether IPv4 (the key would
be "State:/Network/Interface/<ifName>/IPv4") is set up and has a
reasonable IP address.
As Duane noted, this becomes a lot clearer after you do a little
poking around with "scutil".
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden