1.1.1 • Published 4 years ago

hdlc-rfc1662 v1.1.1

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

HDLC

Simple HDLC library using NodeJS.

Installation

$ npm install HDLC

Usage

import HDLC

import { HDLC } from "hdlc";
const hdlc = new HDLC();

Initialize

hdlc.init(sendbyte);
hdlc.eventEmitter.on('newFrame', router);

function sendbyte(data) {
  console.log(data);
}

function router(frame) {
  console.log(frame);
}

To send

hdlc.sendFrame(messageBytes);

To receive

hdlc.byteReceiver(messageFrame);
1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago