hottohts
Version:
TypeScript library for HottoH pellet stoves
28 lines • 670 B
TypeScript
export declare enum Command {
DAT = "DAT"
}
export declare enum CommandMode {
READ = "R",
WRITE = "W",
EXECUTE = "E"
}
/**
* Build and encode a protocol request for the HottoH stove.
*/
export declare class Request {
private command;
private mode;
private parameters;
private id;
private request;
constructor(command?: string, mode?: string, parameters?: string[], id?: number);
private _buildRawPacket;
private _getRawData;
private _getParameters;
private _getCrc;
/**
* Get the encoded request as a Buffer for TCP transmission.
*/
getRequest(): Buffer;
}
//# sourceMappingURL=request.d.ts.map