Exemple #1
0
 public InsteonDevice(string name, InsteonAddress addr, InsteonModem modem)
     : base(name)
 {
     this.Modem = modem;
     this.Address = addr;
 }
Exemple #2
0
 public void SendDirectCommand(InsteonAddress addr, DirectCommand command1, byte command2 = 0)
 {
     var b = new byte[] { 0x02, 0x62, addr.AddressBytes[0], addr.AddressBytes[1], addr.AddressBytes[2], 0xf, (byte)command1, command2 };
     this.port.Write(b, 0, b.Length);
     Thread.Sleep(200);
 }
Exemple #3
0
 public Relay(string name, InsteonAddress addr, InsteonModem modem)
     : base(name, addr, modem)
 {
 }