iridium-sbd
v0.0.11
Published
Node.js library for Iridium SBD (short burst data)
Downloads
4
Readme
Node.js library for sending and receiving Iridium SBD (Short Burst Data).
Created for using with RockBlock modems but should work with other Iridium 9602 modems.
Installation
$ npm install iridium-sbd
Usage
var iridium = require('iridium-sbd');
iridium.open({
debug: 1, //turn debugging on
port: "/dev/ttyUSB0",
flowControl: true //set to false to disable flowControl on the SBD for 3-wire UART setups
});
iridium.on('initialized', function() {
console.log("Iridium initialized");
iridium.sendCompressedMessage("Hello world!", function(err,momsn){
console.log("Message Sent!");
});
});
iridium.on('ringalert', function() {
console.log("New incoming message event!");
iridium.mailboxCheck();
});
iridium.on('newmessage', function(message, queued) {
console.log("Received new message ", message);
});
iridium.on('debug',function(log){
console.log('>>> '+log);
});
Credits
Razvan Dragomirescu's original Iridium SDB node.js library. http://www.veri.fi/iridiumsbd.tar.gz
Rock Seven - RockBlock (Iridium 9602). https://www.rock7.com/