@novastar/net
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-alpha.11 • Public • Published

@novastar/net

Net binding for @novastar/codec.

Go to API documentation.

Installation

Using npm:

$ npm install --save @novastar/net@next

or yarn:

$ yarn add @novastar/net@next

Usage:

import net, { findNetDevices } from '@novastar/net';

const [address] = await findNetDevices();
if (address) {
  session = net.open(address);
}

const writeReq = new Request([255]);
writeReq.deviceType = DeviceType.ReceivingCard;
writeReq.address = 0x02000001;
await session.connection.send(writeReq);

// Close all network sessions
net.release();

Package Sidebar

Install

npm i @novastar/net

Weekly Downloads

23

Version

2.0.0-alpha.11

License

MIT

Unpacked Size

33.4 kB

Total Files

10

Last publish

Collaborators

  • sarakusha