UNPKG

@bacnet-js/device

Version:

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

11 lines 606 B
import { BDSingletProperty } from '../../properties/index.js'; import { BDObject } from '../generic/object.js'; import { ObjectType, ApplicationTag, PropertyIdentifier, } from '@bacnet-js/client'; export class BDTimeValue extends BDObject { presentValue; constructor(instance, opts) { super({ type: ObjectType.TIME_VALUE, instance }, opts.name, opts.description); this.presentValue = this.addProperty(new BDSingletProperty(PropertyIdentifier.PRESENT_VALUE, ApplicationTag.TIME, opts.writable ?? false, opts.presentValue ?? new Date())); } } //# sourceMappingURL=timevalue.js.map