Interface ModbusResponse


  • @NonNullByDefault
    public interface ModbusResponse
    Minimal representation of a modbus response. Only function code is exposed, which allows detecting MODBUS exception codes from normal codes.
    Author:
    Sami Salonen - Initial contribution
    • Method Detail

      • getFunctionCode

        int getFunctionCode()
        Function code of the response. Note that in case of Slave responding with Modbus exception response, the response function code might differ from request function code
        Returns:
        function code of the response