1.0.5 • Published 5 years ago

hdlc v1.0.5

Weekly downloads
2
License
ISC
Repository
github
Last release
5 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.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago