@novastar/net
v2.2.1
Published
Network binding for @novastar/codec
Maintainers
Readme
@novastar/net
Net binding for @novastar/codec.
Go to API documentation.
Installation
Using npm:
npm install --save @novastar/net@nextor yarn:
yarn add @novastar/net@nextUsage
import { findNetDevices, net } 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();