Interface BrickletRS485.ModbusMasterReadDiscreteInputsResponseListener

  • All Superinterfaces:
    DeviceListener, java.util.EventListener, TinkerforgeListener
    Enclosing class:
    BrickletRS485

    public static interface BrickletRS485.ModbusMasterReadDiscreteInputsResponseListener
    extends DeviceListener
    This listener is called only in Modbus master mode when the master receives a valid response of a request to read discrete inputs. The parameters are request ID of the request, exception code of the response and the data as received by the response. Any non-zero exception code indicates a problem. If the exception code is greater than 0 then the number represents a Modbus exception code. If it is less than 0 then it represents other errors. For example, -1 indicates that the request timedout or that the master did not receive any valid response of the request within the master request timeout period as set by BrickletRS485.setModbusConfiguration(int, long). \note If reconstructing the value fails, the listener is triggered with null for discreteInputs.
    • Method Detail

      • modbusMasterReadDiscreteInputsResponse

        void modbusMasterReadDiscreteInputsResponse​(int requestID,
                                                    int exceptionCode,
                                                    boolean[] discreteInputs)