This is an old revision of the document!
Calculate the MODBUS RTU CRC-16 of a byte array slice.
from cubloc import GetCrc GetCrc(arrayName: bytes, byteLength: int)
arrayName to include.Returns the MODBUS RTU CRC-16 value for the requested byte slice.
from cubloc import GetCrc # Example usage result = GetCrc([1, 2, 3], 1) print(result)