rainbird
Version:
The Rainbird library allows you to access your RainBird Controller.
20 lines • 492 B
JavaScript
import { Response } from './Response.js';
export class IrrigationStateResponse extends Response {
response;
_irrigationState;
constructor(response) {
super();
this.response = response;
this._irrigationState = response[1] !== 0;
}
get type() {
return 0xC8;
}
get irrigationState() {
return this._irrigationState;
}
toBuffer() {
return this.response;
}
}
//# sourceMappingURL=IrrigationStateResponse.js.map