Added ability to set circuit state
This allows for, for example, turning on a water feature or changing pool/spa active status.
This commit is contained in:
6
messages/SLMessage.js
Executable file → Normal file
6
messages/SLMessage.js
Executable file → Normal file
@ -10,6 +10,8 @@ exports.SLMessage = class SLMessage extends SmartBuffer {
|
||||
}
|
||||
|
||||
toBuffer() {
|
||||
this.encode();
|
||||
|
||||
if (this._wroteSize === false) {
|
||||
this.insertInt32LE(this.length - 4, 4);
|
||||
this._wroteSize = true;
|
||||
@ -54,4 +56,8 @@ exports.SLMessage = class SLMessage extends SmartBuffer {
|
||||
this.messageId = this.readUInt16LE();
|
||||
this.dataLength = this.readInt32LE();
|
||||
}
|
||||
|
||||
encode() {
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user