UNPKG

bacnet-device

Version:

A TypeScript library for implementing BACnet IP devices in Node.js.

11 lines 609 B
import { BDSingletProperty } from '../properties/index.js'; import { BDObject } from './generic/object.js'; import { ObjectType, ApplicationTag, PropertyIdentifier, } from '@innovation-system/node-bacnet'; export class BDBinaryValue extends BDObject { presentValue; constructor(instance, opts) { super(ObjectType.BINARY_VALUE, instance, opts.name, opts.description); this.presentValue = this.addProperty(new BDSingletProperty(PropertyIdentifier.PRESENT_VALUE, ApplicationTag.BOOLEAN, opts.writable ?? false, opts.presentValue ?? false)); } } //# sourceMappingURL=binaryvalue.js.map