Appearance
Home > resol-vbus-core > calcAndCompareChecksum
calcAndCompareChecksum() function
Calculate the checksum and compare it to the stored one.
Signature:
typescript
export declare function calcAndCompareChecksum(version: number, buffer: Uint8Array, start: number, end: number): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
version | number | The VBus version. |
buffer | Uint8Array | The buffer. |
start | number | The start index. |
end | number | The end index. |
boolean
Whether the stored checksum matches the calculated one.