hostapd_switch
Version:
Utility to easy switch between client mode and ap mode.
19 lines (12 loc) • 400 B
text/typescript
import WlanSwitch from '../index';
const verb = require('verbo');
const conf = require('./conf.json')
conf.wpasupplicant_path=__dirname+'/wpa_supplicant.conf'
conf.redirect = 4000
const WS = new WlanSwitch(conf, true)
console.log(WS)
WS.host().then(function (options) {
verb(options, 'info', 'hostapd_switch host')
}).catch(function (err) {
verb(err, 'error', 'hostapd_switch host')
})