wifi-net project to interact with wifi network such as discover wifi, connect to wifi and disconnect form wifi.
npm install wifi-net
- Windows
- Linux
import network from "wifi-net";
//# OR
const network = require('wifi-net');
network.scan((networks) => {
console.log(networks);
})
network.connect({ssid:'name', password:'pass', (err) => {
if(err) throw err;
})
network.disconnect((err) => {
if(err) throw err;
})
This project is licensed under the MIT License - see the LICENSE file for details
This project is heavily inspired from node-wifi but with some structural and functionality differences.