Interface BrickletRS485.ModbusMasterReadHoldingRegistersResponseListener

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

    public static interface BrickletRS485.ModbusMasterReadHoldingRegistersResponseListener
    extends DeviceListener
    This listener is called only in Modbus master mode when the master receives a valid response of a request to read holding registers. 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 timed out 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 holdingRegisters.
    • Method Detail

      • modbusMasterReadHoldingRegistersResponse

        void modbusMasterReadHoldingRegistersResponse​(int requestID,
                                                      int exceptionCode,
                                                      int[] holdingRegisters)