I am looking for an API to get a list of RSSI’s wireless networks around my Mac, but couldn’t find any yet.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Look at the Core WLAN framework. Get a CWInterface given the “BSD name” of the interface with
initWithInterfaceName:, usescanForNetworksWithName:orscanForNetworksWithSSID: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.