A wireless util to control wpa_supplicant
npm install wirelesser[![NPM version][npm-image]][npm-url]
[![Downloads][download-image]][npm-url]
> A wifi utils to control wpa_supplicant
npm install wirelesser --save
``bash`
sudo apt-get install -y hostapd dnsmasq haveged
This only works on linux, tested on ubuntu 14.4 and debian jesse.
you need to have wpa_supplicant installed , run using sudo and running with wpa_spplicant having config : __ctrl_interface=/var/run/wpa_supplicant__
`js
const {Wireless} = require('wirelesser');
const wireless = new Wireless();
wireless.open().then(() => {
return wireless.connect('ssid', 'password').then(result => {
console.log(result);
});
}).then(() => wireless.close());
``
More examples are here
* Setup a host access point.
* Run npm test in sudo.`bash``
sudo SSID="ssid" PASS="password" npm test
MIT © Yuan Tao
[npm-url]: https://npmjs.org/package/wirelesser
[npm-image]: https://img.shields.io/npm/v/wirelesser.svg?style=flat
[download-image]: http://img.shields.io/npm/dm/wirelesser.svg?style=flat