UNPKG

@bacnet-js/device

Version:

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

21 lines 1.06 kB
import { type ApplicationTagValueTypeMap, type BACNetAppData, type PropertyIdentifier, type CharacterStringEncoding, ApplicationTag } from '@bacnet-js/client'; import { BDAbstractSingletProperty } from './abstract.js'; import { type BDPropertyAccessContext } from '../types.js'; export declare class BDPolledSingletProperty<Tag extends ApplicationTag, Type extends ApplicationTagValueTypeMap[Tag] = ApplicationTagValueTypeMap[Tag]> extends BDAbstractSingletProperty<Tag, Type> { #private; constructor(identifier: PropertyIdentifier, type: Tag, poll: (ctx: BDPropertyAccessContext) => Type, encoding?: CharacterStringEncoding); getData(ctx?: BDPropertyAccessContext): BACNetAppData<Tag, Type>; getValue(ctx?: BDPropertyAccessContext): Type; /** * * @internal */ ___readData(index: number, ctx: BDPropertyAccessContext): BACNetAppData | BACNetAppData[]; setData(): Promise<void>; setValue(): Promise<void>; /** * * @internal */ ___writeData(): Promise<void>; } //# sourceMappingURL=polled.d.ts.map