Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
VonRehberg committed Mar 5, 2016
1 parent 9c3c605 commit 83615f7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# 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
```javascript
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);
});
```

0 comments on commit 83615f7

Please sign in to comment.