L-response of a window-contact is only 6 Bytes long.
EDIT:bit-2 of byte-6 indicates the window open status.
bit-1 of byte-6 indicates the window open status.
0=closed,1=open
Code: Select all
if ((value & (1<<1)) !=0)
console.log("Window open");
EDIT:bit-2 of byte-6 indicates the window open status.
Code: Select all
if ((value & (1<<1)) !=0)
console.log("Window open");