Class Command

java.lang.Object
dev.digiried.wattpilot.commands.Command
Direct Known Subclasses:
SetBoostCommand, SetBoostSoCLimitCommand, SetChargingCurrentCommand, SetChargingModeCommand, SetEnforcedChargingStateCommand, SetSurplusPowerThresholdCommand, SetSurplusSoCThresholdCommand

public abstract class Command extends Object
Base class for all commands that can be sent to the wallbox.
Author:
Florian Hotze - Initial contribution
  • Method Details

    • getKey

      public String getKey()
      Returns the key of the command. See PropertyKeys for a list of all common keys.
      Returns:
      the key
    • getValue

      public abstract CommandValue<?> getValue()
      Returns the value of the command wrapped in a CommandValue.
      Returns:
      the value