Interface BrickletRS485.ModbusSlaveWriteSingleCoilRequestListener

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

    public static interface BrickletRS485.ModbusSlaveWriteSingleCoilRequestListener
    extends DeviceListener
    This listener is called only in Modbus slave mode when the slave receives a valid request from a Modbus master to write a single coil. The parameters are request ID of the request, the number of the coil and the value of coil to be written as received by the request. The number of the coil is called coil 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.modbusSlaveAnswerWriteSingleCoilRequest(int).
    • Method Detail

      • modbusSlaveWriteSingleCoilRequest

        void modbusSlaveWriteSingleCoilRequest​(int requestID,
                                               long coilAddress,
                                               boolean coilValue)