I'd like to be able to get the list of APs available / network names (SSIDs)
I may want to select a specific SSID.
My ultimate goal is to be able to check on wifi signal strength and quality in order to force re-association to another AP before it loses completely connectivity.
node.js
a good choice to accomplish this?You can use the wireless-tools package.
Usage:
var iwlist = require('wireless-tools/iwlist');
iwlist.scan('wlan0', function(err, networks) {
console.log(networks);
});
// =>
[
{
address: '00:0b:81:ab:14:22',
ssid: 'BlueberryPi',
mode: 'master',
frequency: 2.437,
channel: 6,
security: 'wpa',
quality: 48,
signal: 87
},
// ...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With