node-createap
v0.0.4
Published
Node wrapper for create_ap
Downloads
11
Maintainers
Readme
node-createap
Node wrapper for create_ap
Note : sudo create_ap
needs to run passwordless !
Note for Raspbian-RPI3 users:
--no-virt
option required- running fine with hostapd v2.5
- dnsmasq & hostapd daemons disabled (
sudo systemctl disable hostapd // dnsmasq
) - disabled all wireless settings in
/etc/network/interfaces
, so it's onlyallow-hotplug wlan1
andallow-hotplug wlan0
Usage :
npm install --save node-createap
then...
var CAP = require ('node-createap')
var createap = new CAP({
path: '/home/pi/create_ap/create_ap',
options: '--daemon -n --isolate-clients -m nat --no-virt --hostapd-debug 2 --no-haveged -g 192.168.11.1 -c 1 --country US', // --hidden
silent: true,
wirelessInterface: 'wlan0',
wiredInterface: 'eth0',
wifiApName: 'MyNetwork',
wifiWPA: 'aaaaaaaa'
})
createap.start(function (msg){
console.log(msg)
})
process.on('SIGINT', function () {
createap.stop(function (msg) {
console.log(msg);
})
process.exit();
});