Package dev.digiried.wattpilot
Interface WattpilotClientListener
- All Known Implementing Classes:
App
@NonNullByDefault
public interface WattpilotClientListener
Interface for listening to events from the
WattpilotClient.- Author:
- Florian Hotze - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidDeprecated, for removal: This API element is subject to removal in a future version.default voidconnected(WattpilotInfo info) Called when the client successfully connected to the wallbox and received the initial devicevoiddisconnected(String reason, @Nullable Throwable cause) Called when the client disconnected from the wallbox.default voidstatusChanged(WattpilotStatus status) Called when the client receives a status change from the wallbox.
-
Method Details
-
connected
Deprecated, for removal: This API element is subject to removal in a future version.Useconnected(WattpilotInfo)instead.Called when the client successfully connected to the wallbox. -
connected
Called when the client successfully connected to the wallbox and received the initial device- Parameters:
info- the device info
-
disconnected
Called when the client disconnected from the wallbox.- Parameters:
reason- the reason for the disconnectioncause- the throwable that caused ungraceful disconnect ornullif disconnection was graceful
-
statusChanged
Called when the client receives a status change from the wallbox.- Parameters:
status- the new status
-
connected(WattpilotInfo)instead.