zigbee-herdsman-zigate
Version:
An open source ZigBee gateway solution with node.js.
41 lines • 1.12 kB
TypeScript
/// <reference types="node" />
import { IZGMessage, ZGMessageCode } from '../message';
declare type AttributeData = number | string | boolean | null;
export declare enum AttributeType {
Null = 0,
Boolean = 16,
BitMap8 = 24,
UInt8 = 32,
UInt16 = 33,
UInt32 = 34,
UInt48 = 37,
Int8 = 40,
Int16 = 41,
Int32 = 42,
Enum = 48,
String = 66
}
export interface AttributeReportPayload {
sequenceNumber: number;
srcAddress: string;
srcEndpoint: number;
clusterId: number;
attributeId: number;
attributeType: number;
attributeSize: number;
attributeData: AttributeData;
attributeDataRaw: Buffer;
}
export declare class ZGAttributeReportMessage implements IZGMessage {
code: ZGMessageCode.AttributeReport;
label: string;
payload: AttributeReportPayload;
payloadBuffer: Buffer;
constructor(payload: Buffer);
getCode(): ZGMessageCode;
getLabel(): string;
getPayload(): AttributeReportPayload;
protected fromBuffer(payload: Buffer): AttributeReportPayload;
}
export {};
//# sourceMappingURL=attribute-report.d.ts.map