Skip to content

Get connection state of wpa_supplicant in NodeJS

Notifications You must be signed in to change notification settings

PhinCo/node-wpa-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node WPA CLI

An event-oriented library to interact with wpa_supplicant. The aim of the project is to offer a simple interface to control your wifi antenna(s) through Node.JS, by supporting all the 'offical' command line interface commands. I'll start adding most of the p2p commands first.

Example

var WpaState = require('node_wpa_cli')
new WpaState('wlan0')
.on('state', function (state) {
	if (state == 'completed') {
		console.log('internet')
	} else if (state == 'disconnected') {
		console.log('no internet')
	}
})
.connect()

License

MIT

About

Get connection state of wpa_supplicant in NodeJS

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%