SSHConnection class

Constructors

SSHConnection()

Properties

client SSHClient?
SSH client for managing the connection.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
leftScreen int
Gets the left screen number.
no setter
password Future<String?>
Gets the password from the shared preferences. Returns null if not found.
no setter
rightScreen int
Gets the right screen number.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenAmount int
Number of screens in the Liquid Galaxy system, default is 5.
getter/setter pair
username String
no setter

Methods

connect() Future<bool>
Connects to the Liquid Galaxy system
disconnect() Future<void>
Disconnects the SSH client if connected.
getScreenAmount() Future<int>
Retrieves the number of screens in the Liquid Galaxy system.
getSftp() Future<SftpClient>
Returns the sftp client
handleSSHChannelOpenError() Future<void>
Handles an SSH channel open error.
isConnected() Future<bool>
Checks if the SSH client is connected.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendCommand(String command) Future<String?>
Sends the command to the Liquid Galaxy.
sendKml(String kml, {List<String> images = const []}) Future<void>
Sends a KML file to the Liquid Galaxy system.
sendKMLToSlave(int screenNumber, String kml) Future<void>
Sends a KML file to a specific slave screen.
toString() String
A string representation of this object.
inherited
upload(String filePath) Future<void>
Uploads a file to the Liquid Galaxy.

Operators

operator ==(Object other) bool
The equality operator.
inherited