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