Class SetupHelper
- java.lang.Object
-
- com.inhousegreenhouse.ch.backend.helper.SetupHelper
-
public class SetupHelper extends java.lang.Object
This class is used to help the app SetupSequence to fetch the greenhouse settings from the user. The user, through a socket connection, will send the settings to the app, and this class will handle all the process behind the scene.
-
-
Constructor Summary
Constructors Constructor Description SetupHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
stop()
Close the socket connection.GreenhouseSetup
waitServerData(int port)
Start the socket connection and wait for user settings.
-
-
-
Method Detail
-
stop
public void stop()
Close the socket connection.
-
waitServerData
public GreenhouseSetup waitServerData(int port)
Start the socket connection and wait for user settings.- Parameters:
port
- The port to listen on.- Returns:
- The greenhouse settings, sent by the user.
-
-