Skip to main content

decode_frame

Function decode_frame 

Source
pub fn decode_frame(data: &[u8]) -> Result<(UnitId, &[u8]), DecodeError>
Expand description

Decode a Modbus RTU frame, verifying the CRC and returning the unit ID and PDU slice.