Class App

java.lang.Object
dev.digiried.wattpilot.shell.App
All Implemented Interfaces:
WattpilotClientListener

public class App extends Object implements WattpilotClientListener
Simple shell application to interact with a Wattpilot wallbox.
Author:
Florian Hotze - Initial contribution
  • Method Details

    • main

      public static void main(String[] args)
      Main method to start the shell application.

      Two arguments are expected: the host and the password of the wallbox.

      Parameters:
      args -
    • connected

      public void connected()
      Description copied from interface: WattpilotClientListener
      Called when the client successfully connected to the wallbox.
      Specified by:
      connected in interface WattpilotClientListener
    • disconnected

      public void disconnected(String reason, Throwable cause)
      Description copied from interface: WattpilotClientListener
      Called when the client disconnected from the wallbox.
      Specified by:
      disconnected in interface WattpilotClientListener
      Parameters:
      reason - the reason for the disconnection
      cause - the throwable that caused the disconnect or null if no throwable disconnected the client