Package com.tinkerforge
Interface BrickletRS485.ModbusSlaveReadHoldingRegistersRequestListener
-
- All Superinterfaces:
DeviceListener
,java.util.EventListener
,TinkerforgeListener
- Enclosing class:
- BrickletRS485
public static interface BrickletRS485.ModbusSlaveReadHoldingRegistersRequestListener extends DeviceListener
This listener is called only in Modbus slave mode when the slave receives a valid request from a Modbus master to read holding registers. The parameters are request ID of the request, the number of the first holding register to be read and the number of holding registers to be read as received by the request. The number of the first holding register is called starting address for backwards compatibility reasons. It is not an address, but instead a holding register number in the range of 1 to 65536. The prefix digit 4 (for holding register) is omitted. To send a response of this request useBrickletRS485.modbusSlaveAnswerReadHoldingRegistersRequest(int, int[])
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
modbusSlaveReadHoldingRegistersRequest(int requestID, long startingAddress, int count)
-