This function calculates a Block Check Character for the given array of strings.
console.log(calculateBcc(['01', '02', '03', '04']));
4
The bytes of the message as a hex string array.
The calculated BCC.
This function calculates a Block Check Character for the given array of numbers.
console.log(Bcc.calculate([1, 2, 3, 4]));
4
The bytes of the message as a number array.
The calculated BCC.
This function calculates a Block Check Character for the buffer.
console.log(Bcc.calculate(Buffer.from([1, 2, 3, 4])))
4
The bytes of the message as a buffer.
The calculated BCC.
Generated using TypeDoc
This class provides methods for calculating the Block Check Character of a message.