Exemple #1
0
 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());
 }
Exemple #2
0
 /* Constructor */
 public Reboot(RaspberryPi pi)
 {
     try
     {
         this.pi            = pi;
         this.exec          = new SshExec(pi.getHostname(), pi.getUser());
         this.exec.Password = pi.getPassword();
     }
     catch (Exception) { }
 }
Exemple #3
0
        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)
            { }
        }
Exemple #4
0
 public Setup(RaspberryPi pi)
 {
     this.pi       = pi;
     exec          = new SshExec(pi.getHostname(), pi.getUser());
     exec.Password = pi.getPassword();
 }
Exemple #5
0
 /* Constructor */
 public Install(RaspberryPi pi, string package)
 {
     this.pi      = pi;
     this.package = package;
     exec         = new SshExec(pi.getHostname(), pi.getUser(), pi.getPassword());
 }
Exemple #6
0
 public Status(RaspberryPi pi)
 {
     this.pi = pi;
 }
Exemple #7
0
        // All fields of Update

        public Update(RaspberryPi pi)
        {
        }