Skip to content

GetOcean/ocean-wifi-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published