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

        public Update(RaspberryPi pi)
        {
        }