Class AbstractWriteTask<REQUEST extends com.ghgande.j2mod.modbus.msg.ModbusRequest,RESPONSE extends com.ghgande.j2mod.modbus.msg.ModbusResponse>

java.lang.Object
io.openems.edge.bridge.modbus.api.task.AbstractTask<REQUEST,RESPONSE>
io.openems.edge.bridge.modbus.api.task.AbstractWriteTask<REQUEST,RESPONSE>
All Implemented Interfaces:
Task, WriteTask, ManagedTask
Direct Known Subclasses:
AbstractWriteTask.Single, FC16WriteRegistersTask

public abstract class AbstractWriteTask<REQUEST extends com.ghgande.j2mod.modbus.msg.ModbusRequest,RESPONSE extends com.ghgande.j2mod.modbus.msg.ModbusResponse> extends AbstractTask<REQUEST,RESPONSE> implements WriteTask
  • Constructor Details

  • Method Details

    • getPriority

      public Priority getPriority()
      Priority for WriteTasks is by default always HIGH.
      Specified by:
      getPriority in interface ManagedTask
      Returns:
      Priority.HIGH
    • payloadToString

      protected final String payloadToString(RESPONSE response)
      Description copied from class: AbstractTask
      Converts the actual payload of the RESPONSE to a human readable format suitable for logs; without header data (like Unit-ID, function code, checksum, etc).
      Specified by:
      payloadToString in class AbstractTask<REQUEST extends com.ghgande.j2mod.modbus.msg.ModbusRequest,RESPONSE extends com.ghgande.j2mod.modbus.msg.ModbusResponse>
      Parameters:
      response - the response
      Returns:
      a string