zigbee-herdsman
Version:
An open source ZigBee gateway solution with node.js.
15 lines • 583 B
TypeScript
import { type Subsystem, type Type } from "./constants";
export declare class Frame {
readonly type: Type;
readonly subsystem: Subsystem;
readonly commandID: number;
readonly data: Buffer;
readonly length?: number;
readonly fcs?: number;
constructor(type: Type, subsystem: Subsystem, commandID: number, data: Buffer, length?: number, fcs?: number);
toBuffer(): Buffer;
static fromBuffer(length: number, fcsPosition: number, buffer: Buffer): Frame;
private static calculateChecksum;
toString(): string;
}
//# sourceMappingURL=frame.d.ts.map