node-wireless
node-wireless copied to clipboard
Change method for interacting with WiFi hardware
Currently, the module runs a bunch of commands over and over. This means we need to wait for the command to finish before we get the results. This can take many seconds, and then we send a "burst" of network found events, etc.
What we should do, is find a better way to talk to the hardware, and be able to trigger an event every single time the device sees a wireless packet.
I have absolutely no idea how to do this. Someone once said something about dmesg or something similar, but I'm still pretty lost.
D-Bus may be the answer:
http://dbus.freedesktop.org/doc/dbus-tutorial.html