Beispiel #1
0
 public void setConfigurations(String device, String authorization, int voltage, int duration)
 {
     this.device = device;
     this.authorization = authorization;
     this.voltage = voltage;
     this.duration = duration;
     this.cloudBit = new CloudBitSignal(this.device, this.authorization, voltage, duration * 1000);
 }
Beispiel #2
0
 public void setConfigurations(String device, String authorization, int voltage, int duration, String iftttSecretKey, String iftttEvent)
 {
     this.device = device;
     this.authorization = authorization;
     this.voltage = voltage;
     this.duration = duration;
     this.iftttSecretKey = iftttSecretKey;
     this.iftttEvent = iftttEvent;
     this.cloudBit = new CloudBitSignal(this.device, this.authorization, voltage, duration * 1000);
     this.ifttt = new IftttSignal(this.iftttSecretKey, iftttEvent);
 }