A advanced wireless tools to control wpa_supplicant
npm i awt
- hostapd
- dnsmasq
- haveged
- create_ap
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
http://w1.fi/wpa_supplicant/devel/ctrl_iface_page.html
const {Wireless} = require('awt');
const wireless = new Wireless();
(async () => {
const result = await wireless.connect('ssid', 'password');
console.log(result);
})()
More examples are here
- Setup a host access point.
- Run
npm test
insudo
.
sudo SSID="ssid" PASS="password" npm test
MIT © Yuan Tao