UNPKG

1.29 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.DmpVector = exports.FrameVector = exports.RootVector = exports.DEFAULT_CID = exports.ACN_PID = void 0;
4exports.ACN_PID = Buffer.from([
5 0x41,
6 0x53,
7 0x43,
8 0x2d,
9 0x45,
10 0x31,
11 0x2e,
12 0x31,
13 0x37,
14 0x00,
15 0x00,
16 0x00,
17]);
18/**
19 * "The CID shall be a UUID [...] that is a 128-bit number / Each piece
20 * of equipment should maintain the same CID for its entire lifetime"
21 * - E1.31
22 */
23exports.DEFAULT_CID = Buffer.from([
24 0x6b,
25 0x79,
26 0x6c,
27 0x65,
28 0x48,
29 0x65,
30 0x6e,
31 0x73,
32 0x65,
33 0x6c,
34 0x44,
35 0x65,
36 0x66,
37 0x61,
38 0x75,
39 0x6c,
40]);
41var RootVector;
42(function (RootVector) {
43 RootVector[RootVector["DATA"] = 4] = "DATA";
44 RootVector[RootVector["EXTENDED"] = 8] = "EXTENDED";
45})(RootVector = exports.RootVector || (exports.RootVector = {}));
46var FrameVector;
47(function (FrameVector) {
48 FrameVector[FrameVector["DATA"] = 2] = "DATA";
49})(FrameVector = exports.FrameVector || (exports.FrameVector = {}));
50var DmpVector;
51(function (DmpVector) {
52 DmpVector[DmpVector["DATA"] = 2] = "DATA";
53})(DmpVector = exports.DmpVector || (exports.DmpVector = {}));
54// export enum ExtendedFrameVector { SYNC = 1, DISCOVERY = 2 }