Structs§
- Mbap
Header - Modbus Application Protocol (MBAP) header used in Modbus TCP framing.
Constants§
- MBAP_
HEADER_ LEN - Size of the MBAP header in bytes (transaction ID + protocol ID + length + unit ID).
Functions§
- decode_
frame - Decode a complete Modbus TCP frame, returning the MBAP header and PDU slice.
- encode_
frame - Encode a complete Modbus TCP frame (MBAP header + PDU) into the writer.