public Transfer(RaspberryPi pi, string local, string remote) { this.pi = pi; this.local = local; this.remote = remote; this.transferScp = new Scp(pi.getHostname(), pi.getUser(), pi.getPassword()); }
/* Constructor */ public Reboot(RaspberryPi pi) { try { this.pi = pi; this.exec = new SshExec(pi.getHostname(), pi.getUser()); this.exec.Password = pi.getPassword(); } catch (Exception) { } }
public void auxTransfer(RaspberryPi pi, string local, string remote) { Scp scp = new Scp(pi.getHostname(), pi.getUser(), pi.getPassword()); try { scp.Connect(); scp.From(remote, local); scp.Close(); } catch (Exception) { } }
public Setup(RaspberryPi pi) { this.pi = pi; exec = new SshExec(pi.getHostname(), pi.getUser()); exec.Password = pi.getPassword(); }
/* Constructor */ public Install(RaspberryPi pi, string package) { this.pi = pi; this.package = package; exec = new SshExec(pi.getHostname(), pi.getUser(), pi.getPassword()); }