Interface WattpilotClientListener

All Known Implementing Classes:
App

public interface WattpilotClientListener
Interface for listening to events from the WattpilotClient.
Author:
Florian Hotze - Initial contribution
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when the client successfully connected to the wallbox.
    void
    disconnected(String reason, Throwable cause)
    Called when the client disconnected from the wallbox.
    default void
    Called when the client receives a status change from the wallbox.
  • Method Details

    • connected

      void connected()
      Called when the client successfully connected to the wallbox.
    • disconnected

      void disconnected(String reason, Throwable cause)
      Called when the client disconnected from the wallbox.
      Parameters:
      reason - the reason for the disconnection
      cause - the throwable that caused the disconnect or null if no throwable disconnected the client
    • statusChanged

      default void statusChanged(WattpilotStatus status)
      Called when the client receives a status change from the wallbox.
      Parameters:
      status - the new status