ts-bacnet
Version:
The BACnet protocol library written in pure JavaScript.
33 lines • 1.15 kB
TypeScript
/**
* The iAm event represents the response to a whoIs request to detect all
* devices in a BACNET network.
*
* @event bacnet.iAm
* @param {number} deviceId - The BACNET device-id of the detected device.
* @param {number} maxApdu - The max APDU size the detected device supports.
* @param {number} segmentation - The type of segmentation the detected device supports.
* @param {number} vendorId - The BACNET vendor-id of the detected device.
*
* @example
* const bacnet = require('ts-bacnet');
* const client = new bacnet();
*
* client.on('iAm', (msg) => {
* console.log(
* 'address: ', msg.header.address,
* ' - deviceId: ', msg.payload.deviceId,
* ' - maxApdu: ', msg.payload.maxApdu,
* ' - segmentation: ', msg.payload.segmentation,
* ' - vendorId: ', msg.payload.vendorId
* );
* });
*/
export declare const encode: (buffer: any, deviceId: any, maxApdu: any, segmentation: any, vendorId: any) => void;
export declare const decode: (buffer: any, offset: any) => {
len: number;
deviceId: any;
maxApdu: any;
segmentation: any;
vendorId: any;
};
//# sourceMappingURL=i-am.d.ts.map