node-createap

0.0.4 • Public • Published

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 only allow-hotplug wlan1 and allow-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();
});

Package Sidebar

Install

npm i node-createap

Weekly Downloads

0

Version

0.0.4

License

ISC

Last publish

Collaborators

  • pldubouilh