Pregunta

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

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top