Class ModbusProtocol
java.lang.Object
io.openems.edge.bridge.modbus.api.ModbusProtocol
-
Constructor Summary
ConstructorDescriptionModbusProtocol
(AbstractOpenemsModbusComponent parent, Task... tasks) Creates a newModbusProtocol
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a Task to the Protocol.void
Adds Tasks to the Protocol.void
Deactivate theModbusProtocol
.Gets the Read-Tasks Manager.void
removeTask
(Task task) Removes a Task from the Protocol.
-
Constructor Details
-
ModbusProtocol
Creates a newModbusProtocol
.- Parameters:
parent
- theAbstractOpenemsModbusComponent
parenttasks
- theTask
s- Throws:
OpenemsException
- on error
-
-
Method Details
-
addTasks
Adds Tasks to the Protocol.- Parameters:
tasks
- the tasks- Throws:
OpenemsException
- on error
-
addTask
Adds a Task to the Protocol.- Parameters:
task
- the task- Throws:
OpenemsException
- on plausibility error
-
removeTask
Removes a Task from the Protocol.- Parameters:
task
- the task
-
getTaskManager
Gets the Read-Tasks Manager.- Returns:
- a the TaskManager
-
deactivate
public void deactivate()Deactivate theModbusProtocol
.
-