Skip to main content

Module rtu

Module rtu 

Source

Functionsยง

crc16
Compute the Modbus RTU CRC-16 checksum over the given data.
decode_frame
Decode a Modbus RTU frame, verifying the CRC and returning the unit ID and PDU slice.
encode_frame
Encode a complete Modbus RTU frame (address + PDU + CRC) into the writer.