npm.io
0.1.0 • Published 8 years ago

module-xbee

Licence
MIT
Version
0.1.0
Deps
6
Size
14 kB
Vulns
0
Weekly
0
Stars
1
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

Xbee module

A xbee transparent mode module for nodejs

Installation

npm install module-xbee

Usage

Javascript
var XBee = require('module-xbee').XBee;
var xbee = new XBee("PORT")
xbee.send("", "some data")

xbee.on("data", function(data) {
  console.log(data)
})
TypeScript
import { XBee } from 'module-xbee';
let xbee: XBee = new XBee("PORT")
xbee.send("", "some data")

xbee.on("data", (data) => {
  console.log(data)
})