Closed grimbouk closed 5 years ago
You are right, in lib/klf.js:
GW_ACTIVATE_SCENE_REQ: function (data) {
var buf = new Buffer(1)
buf.writeUInt16BE(Tools.getSessionID(data.sessionID),0)
buf.writeUInt8(data.commandOriginator,2)
buf.writeUInt8(data.priorityLevel,3)
buf.writeUInt8(data.sceneID,4)
buf.writeUInt8(data.velocity,5)
return buf
},
there is the wrong buffer size it must be:
var buf = new Buffer(6)
Im not at home, I'll fix it sa soon as possible.
Hi,
thanks for this implementation, I'm just trying to find my way and think i might have found a bug. GW_ACTIVATE_SCENE_REQ (line 2333 of klf.js sets the Buffer size to 1 - I think this should be 6?
If I leave as is, I get an error...