Git Product home page Git Product logo

Comments (2)

Noext avatar Noext commented on July 16, 2024 1

got the same issue with a rpi3b+ up to date.

I need to run the commande twice to get it working

{ Error: Command failed: cat <wlan0-hostapd.conf && hostapd -B wlan0-hostapd.conf && rm -f wlan0-hostapd.conf
channel=6
hw_mode=g
interface=wlan0
ssid=RaspberryPi
wpa=2
wpa_passphrase=raspberry
at ChildProcess.exithandler (child_process.js:289:12)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:961:16)
at Socket.stream.socket.on (internal/child_process.js:380:11)
at Socket.emit (events.js:182:13)
at Pipe._handle.close (net.js:599:12)
killed: false,
code: 1,
signal: null,
cmd:
'cat <wlan0-hostapd.conf && hostapd -B wlan0-hostapd.conf && rm -f wlan0-hostapd.conf\nchannel=6\nhw_mode=g\ninterface=wlan0\nssid=RaspberryPi\nwpa=2\nwpa_passphrase=raspberry' }

i it seems that if a AP was previously running it fail, the only solution i have find for now its to put a timeout after disable the AP because there is some latency between the disable callback and the real shutdown of the AP

hostapd.disable('wlan0', function (err1) {
console.log(err1);
setTimeout(() => {
hostapd.enable(options, function (err) {
console.log('created');
console.log(err);
});
}, 2000);
});

from wireless-tools.

theavijitsarkar avatar theavijitsarkar commented on July 16, 2024

Fixed this by removing driver from the options.

from wireless-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.