Added debug logging, updated readme with new message+event

This commit is contained in:
2020-06-09 16:51:41 -05:00
parent 407a4ec1f2
commit 98f759c717
2 changed files with 10 additions and 0 deletions

View File

@ -282,6 +282,7 @@ class UnitConnection extends EventEmitter {
}
cancelDelay() {
debugUnit('sending cancel delay command...');
this.client.write(new messages.SLCancelDelay().toBuffer());
}
@ -375,6 +376,7 @@ class UnitConnection extends EventEmitter {
this.emit('setPumpFlow', new messages.SLSetPumpFlow());
break;
case messages.SLCancelDelay.getResponseId():
debugUnit(" it's a cancel delay ack");
this.emit('cancelDelay', new messages.SLCancelDelay());
break;
case 13: