• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to detect Wifi device?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: How to detect Wifi device? (From: Jay Koutavas <email@hidden>)

  • Prev by Date: Re: How to detect Wifi device?
  • Next by Date: Re: How to detect Wifi device?
  • Previous by thread: Re: How to detect Wifi device?
  • Next by thread: Re: How to detect Wifi device?
  • Index(es):
    • Date
    • Thread