Interface BrickletRS485.ModbusSlaveWriteMultipleCoilsRequestListener

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

    public static interface BrickletRS485.ModbusSlaveWriteMultipleCoilsRequestListener
    extends DeviceListener
    This listener is called only in Modbus slave mode when the slave receives a valid request from a Modbus master to write multiple coils. The parameters are request ID of the request, the number of the first coil and the data to be written 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.modbusSlaveAnswerWriteMultipleCoilsRequest(int). \note If reconstructing the value fails, the listener is triggered with null for coils.
    • Method Detail

      • modbusSlaveWriteMultipleCoilsRequest

        void modbusSlaveWriteMultipleCoilsRequest​(int requestID,
                                                  long startingAddress,
                                                  boolean[] coils)