Interface BrickletRS485.ModbusSlaveReadCoilsRequestListener

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

    public static interface BrickletRS485.ModbusSlaveReadCoilsRequestListener
    extends DeviceListener
    This listener is called only in Modbus slave mode when the slave receives a valid request from a Modbus master to read coils. The parameters are request ID of the request, the number of the first coil to be read and the number of coils to be read as received by the request. The number of the first coil is called starting address for backwards compatibility reasons. It is not an address, but instead a coil number in the range of 1 to 65536. To send a response of this request use BrickletRS485.modbusSlaveAnswerReadCoilsRequest(int, boolean[]).
    • Method Detail

      • modbusSlaveReadCoilsRequest

        void modbusSlaveReadCoilsRequest​(int requestID,
                                         long startingAddress,
                                         int count)