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