I am trying to implement this protocol using TCP. Most of it is received as a Buffer and can be read fine using .toString('hex') but there is the AVL part that mentions "Encoded using continuous bit stream. Last byte padded to align to byte boundary" where the data seems to be encoded in a different way that I cannot read properly. How am I supposed to read the continuous bit steam part?
Many thanks in advance!
You have to send the integer value of number of record you have read in 4 bytes buffer encoded using continuous bit stream:
const buffer = Buffer.alloc(4);
buffer.writeIntBE([INT_VALUE], 0, 4);