Question

I am looking for an API to get a list of RSSI's wireless networks around my Mac, but couldn't find any yet.

Tks for the help

Était-ce utile?

La solution

Look at the Core WLAN framework. Get a CWInterface given the "BSD name" of the interface with initWithInterfaceName:, use scanForNetworksWithName: or scanForNetworksWithSSID: without specifying a name or SSID (which will do a "broadcast scan), and then look at the CWNetworks you get back and extract information such as the RSSI from them.

Hopefully there's some sort of bridge that lets you access that framework from Java; if not, you might have to create that bridge yourself.

Note that this is available only in Lion and later.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top