The node-wifi-dualband module allows mac, windows and linux users to interact with surrounding wifi networks through various methods.
These methods include scanning for wifi access points and connecting to these access points.
This module is a fork of node-wifi but with some slight modifications to parse dualband Routers correctly under all operating systems. Each band will appear as independent.
The module manages :
- Connect for linux | mac | windows
- Scan for linux | mac | windows
- List the current wifi connections for linux | mac | windows
- Disconnect for linux | windows
As everything with hardware dependency, weird behaviors may happen depending of your configuration. You should never hesitate to notify us about a specificity of your OS/Hardware/Wifi card/whatever.
// Use as a modulenpm install node-wifi-dualband// Use as a CLInpm install node-wifi-dualband -g
var wifi = ;// Initialize wifi module// Absolutely necessary even to set interface to nullwifi;// Scan networkswifi;// Connect to a networkwifi;// Disconnect from a network// not available on all os for nowwifi;// List the current wifi connectionswifi;// All functions also return promise if there is no callback givenwifi;
Use as CLI
wifi --scanwifi --connect --ssid <ssid> --password <password> --iface <wlan0>wifi --disconnectwifi --current