Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

ocean-wifi-js

Wifi manipulation utility for Ocean devices that run Debian Jessie.

This is a derivative of tlhunter's excellent node-wireless library: https://github.com/tlhunter/node-wireless.

Requires grunt and grunt-cli.

Usage

'use strict';
var wifi = require('wifi.min.js').wifi;

var config = {
    interfaces: ['wlan0'],
    interfaceIndex: 0,
    updateFrequency: 10,
    connectionTestFrequency: 2,
    vanishThreshold: 2
};

// Callback when a network is detected
wifi.onAppear = function(network) {
    console.log("Network appeared with essid: " + network.essid);
};

// Start the wifi system
wifi.start(config).then(        
    function(success) {
        console.log("Yay!")
    },
    function(err) {
        console.log("Boo!")
    }
);

About

Wifi manipulation utility for Ocean devices

Resources

License

Releases

No releases published

Packages

No packages published