Package dev.digiried.wattpilot.commands
Class SetChargingCurrentCommand
java.lang.Object
dev.digiried.wattpilot.commands.Command
dev.digiried.wattpilot.commands.SetChargingCurrentCommand
Command to set the charging current of the wallbox.
- Author:
- Florian Hotze - Initial contribution
-
Constructor Summary
ConstructorsConstructorDescriptionSetChargingCurrentCommand(int current) Create a new charging current command. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the value of the command wrapped in aCommandValue.
-
Constructor Details
-
SetChargingCurrentCommand
Create a new charging current command.- Parameters:
current- the charging current in A between 6 and 32- Throws:
IllegalArgumentException- if the current is not in the valid range
-
-
Method Details
-
getValue
Description copied from class:CommandReturns the value of the command wrapped in aCommandValue.
-