UNPKG

rainbird

Version:

The Rainbird library allows you to access your RainBird Controller.

20 lines 496 B
import { Response } from './Response.js'; export class SerialNumberResponse extends Response { response; _serialNumber; constructor(response) { super(); this.response = response; this._serialNumber = response.subarray(1, 8).toString('hex'); } get type() { return 0x85; } get serialNumber() { return this._serialNumber; } toBuffer() { return this.response; } } //# sourceMappingURL=SerialNumberResponse.js.map