Package dev.digiried.wattpilot.shell
Class App
java.lang.Object
dev.digiried.wattpilot.shell.App
- All Implemented Interfaces:
WattpilotClientListener
Simple shell application to interact with a Wattpilot wallbox.
- Author:
- Florian Hotze - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionvoidconnected(WattpilotInfo info) Called when the client successfully connected to the wallbox and received the initial devicevoiddisconnected(String reason, Throwable cause) Called when the client disconnected from the wallbox.static voidMain method to start the shell application.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.digiried.wattpilot.WattpilotClientListener
connected, statusChanged
-
Method Details
-
main
Main method to start the shell application.Two arguments are expected: the host and the password of the wallbox.
- Parameters:
args-
-
connected
Description copied from interface:WattpilotClientListenerCalled when the client successfully connected to the wallbox and received the initial device- Specified by:
connectedin interfaceWattpilotClientListener- Parameters:
info- the device info
-
disconnected
Description copied from interface:WattpilotClientListenerCalled when the client disconnected from the wallbox.- Specified by:
disconnectedin interfaceWattpilotClientListener- Parameters:
reason- the reason for the disconnectioncause- the throwable that caused ungraceful disconnect ornullif disconnection was graceful
-