UNPKG

ts-bacnet

Version:

The BACnet protocol library written in pure JavaScript.

24 lines 654 B
/** * The timeSync event represents the request to synchronize the local time to * the received time. * * @event bacnet.timeSync * @param {date} dateTime - The time to be synchronized to. * * @example * const bacnet = require('ts-bacnet'); * const client = new bacnet(); * * client.on('timeSync', (msg) => { * console.log( * 'address: ', msg.header.address, * ' - dateTime: ', msg.payload.dateTime * ); * }); */ export declare const encode: (buffer: any, time: any) => void; export declare const decode: (buffer: any, offset: any, length: any) => { len: number; value: Date; }; //# sourceMappingURL=time-sync.d.ts.map