0.1.10 • Published 6 months ago

artnet-dmx v0.1.10

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

artnet-dmx

npm version

Art-Net DMX controller library

Install

 $ npm install artnet-dmx

Usage

import { ArtnetDMX, SendStatus } from 'artnet-dmx';

const artnetDmx = new ArtnetDMX({ host: '192.168.0.100', });
const data = new Uint8Array(512);

data[0] = 20;
data[1] = 0;
data[2] = 255;
data[3] = 255;
data[4] = 0;
data[6] = 0;
data[7] = 0;

artnetDmx.send({data: data})

// or get callback
// artnet.send({
//   data: data,
//   callback: (status, message) => {
//     console.log(status, message);
//     if (status === SendStatus.error) {
//       throw new Error(message);
//     }
//   }
// });

Options

  • host: string (Default "255.255.255.255")
  • port: number (Default: 6454)

Methods

send({ data: Uint8Array })

send({ data: Uint8Array, callback: (status: SendStatus, message?: string) => void; })

send({ universe: number, data: Uint8Array, callback: (status: SendStatus, message?: string) => void; })

License

The MIT License (MIT)

0.1.10

6 months ago

0.1.8

6 months ago

0.1.9

6 months ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago