Skip to content

Node.js library for sending and receiving Iridium SBD (Short Burst Data)

Notifications You must be signed in to change notification settings

erichaydel/node-iridium-sbd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

const createIridium = require('iridium-sbd');
const iridium = createIridium();

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

About

Node.js library for sending and receiving Iridium SBD (Short Burst Data)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%