Skip to content

VonRehberg/node-raspbian-wifi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-raspbian-wifi

This module enables you to setup wifi connections on a raspbian based device. The user executing the module needs access to /etc/wpa_supplicant/wpa_supplicant.conf

Usage

var wifi = require('node-raspbian-wifi');

wifi.resetWifi(function(error) {
  console.log(error);
});

var options = {
  ssid: "YOUR_SSID",
  passphrase: "SECRET"
};

wifi.connectToWifi(options, function(error) {
  console.log(error);
});

wifi.getCurrentWifiSettings(function(error, data) {
  console.log(data.ssid);
});