Skip to main content

encode_frame

Function encode_frame 

Source
pub fn encode_frame(
    w: &mut Writer<'_>,
    address: UnitId,
    pdu: &[u8],
) -> Result<(), EncodeError>
Expand description

Encode a complete Modbus RTU frame (address + PDU + CRC) into the writer.