SLCancelDelay message added (#29)

This commit is contained in:
Bruce Sheplan
2020-06-09 16:43:09 -05:00
committed by GitHub
parent 626ca5b64f
commit db522ba5db
3 changed files with 30 additions and 0 deletions

View File

@ -281,6 +281,10 @@ class UnitConnection extends EventEmitter {
this.client.write(new messages.SLSetPumpFlow(pumpId, circuitId, setPoint, isRPMs).toBuffer());
}
cancelDelay() {
this.client.write(new messages.SLCancelDelay().toBuffer());
}
onClientMessage(msg) {
debugUnit('received message of length %d', msg.length);
if (msg.length < 4) {
@ -370,6 +374,9 @@ class UnitConnection extends EventEmitter {
debugUnit(" it's a set pump flow ack");
this.emit('setPumpFlow', new messages.SLSetPumpFlow());
break;
case messages.SLCancelDelay.getResponseId():
this.emit('cancelDelay', new messages.SLCancelDelay());
break;
case 13:
debugUnit(" it's a login failure.");
this.emit('loginFailed');