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

        public Update(RaspberryPi pi)
        {
        }