Package com.tinkerforge
Interface BrickletRS485.ModbusMasterReadInputRegistersResponseListener
-
- All Superinterfaces:
DeviceListener
,java.util.EventListener
,TinkerforgeListener
- Enclosing class:
- BrickletRS485
public static interface BrickletRS485.ModbusMasterReadInputRegistersResponseListener extends DeviceListener
This listener is called only in Modbus master mode when the master receives a valid response of a request to read input 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 timedout or that the master did not receive any valid response of the request within the master request timeout period as set byBrickletRS485.setModbusConfiguration(int, long)
. \note If reconstructing the value fails, the listener is triggered with null for inputRegisters.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
modbusMasterReadInputRegistersResponse(int requestID, int exceptionCode, int[] inputRegisters)
-