Net binding for @novastar/codec.
Go to API documentation.
Using npm:
npm install --save @novastar/net@next
or yarn:
yarn add @novastar/net@next
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();