Function get_function

Source
pub fn get_function(data: &[u8]) -> (Option<ModbusFunction>, Option<&[u8]>)
Expand description

Gets the function code of the given modbus data.

None is returned if data contains less than 1 byte