Package dev.digiried.wattpilot
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 TypeMethodDescriptionvoidCalled when the client successfully connected to the wallbox.voiddisconnected(String reason, 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
void connected()Called when the client successfully connected to the wallbox. -
disconnected
Called when the client disconnected from the wallbox.- Parameters:
reason- the reason for the disconnectioncause- the throwable that caused the disconnect ornullif no throwable disconnected the client
-
statusChanged
Called when the client receives a status change from the wallbox.- Parameters:
status- the new status
-