npm.io
0.2.4 • Published 11 years ago

hughes-bgan-base

Licence
MIT
Version
0.2.4
Deps
1
Vulns
0
Weekly
0

hughes-bgan-base

NPM

Build Status devDependency Status

Coverage Status Dependency Status

A base socket context and AT command throttler to facilitate communication between Hughes BGAN devices and Node hosts.

usage example

var bgan = require('hughes-bgan-base'),
    _ = new bgan.commander('password');

var base = new bgan.base({
  host: '123.234.234.123',
  port: 11000,
  commands: [
    'at e1',
    'at d +441494712784',
    'at h0',
    _.iclck('ad', '1')
  ],
  stripResponses: true,
  onData:  function(line, raw) {},
  onEnd: function(lines, raw) {}
}).connect();