angeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 1. Received 2
at boundsError (internal/buffer.js:49:9)
at Uint8Array.readUInt8 (internal/buffer.js:213:5)
at processMBWriteItem (/home/pi/Downloads/mcprotocol-master/mcprotocol.js:1358:27)
Problem Resolved by changing at line 1358 in MCprotocol.js file:
1358: writeResponse = theData.readUInt8(1);
angeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 1. Received 2 at boundsError (internal/buffer.js:49:9) at Uint8Array.readUInt8 (internal/buffer.js:213:5) at processMBWriteItem (/home/pi/Downloads/mcprotocol-master/mcprotocol.js:1358:27)
Problem Resolved by changing at line 1358 in MCprotocol.js file: 1358: writeResponse = theData.readUInt8(1);