@bacnet-js/device
Version:
A TypeScript library for implementing BACnet IP devices in Node.js.
30 lines • 1.76 kB
TypeScript
import { type BACNetClientType } from '../../utils.js';
import { type BDDevice } from './device.js';
import { type BDSubscription, type BDQueuedCov } from './types.js';
/**
* Sends a confirmed COV (Change of Value) notification to a subscriber
*
* This function sends a notification that requires confirmation from the recipient,
* which helps ensure reliable delivery of property value changes.
*
* @param client - The BACnet client instance used to send the notification
* @param emitter - The BACnet device sending the notification
* @param subscription - The subscription information for the recipient
* @param cov - The change of value data to send
* @returns A promise that resolves when the notification is confirmed or rejects on error
*/
export declare const sendConfirmedCovNotification: (client: BACNetClientType, emitter: BDDevice, subscription: BDSubscription<any, any, any>, cov: BDQueuedCov<any, any, any>) => Promise<void>;
/**
* Sends an unconfirmed COV (Change of Value) notification to a subscriber
*
* This function sends a notification without requiring confirmation from the recipient.
* This is more efficient but less reliable than confirmed notifications.
*
* @param client - The BACnet client instance used to send the notification
* @param emitter - The BACnet device sending the notification
* @param subscription - The subscription information for the recipient
* @param cov - The change of value data to send
* @returns A promise that resolves when the notification is sent
*/
export declare const sendUnconfirmedCovNotification: (client: BACNetClientType, emitter: BDDevice, subscription: BDSubscription<any, any, any>, cov: BDQueuedCov<any, any, any>) => Promise<void>;
//# sourceMappingURL=utils.d.ts.map