Esempio n. 1
0
 public bool TurnOnWithDelay(Device item)
 {
     //Makesure that we halt for 1 second so that the Telldus stick have time to send the signal.
     bool result = tdTurnOn(item.ID);
     System.Threading.Thread.Sleep(1000);
     return result;
 }
Esempio n. 2
0
 public bool TurnOffWithDelay(Device item)
 {
     bool result = tdTurnOff(item.ID);
     System.Threading.Thread.Sleep(1000);
     return result;
 }
Esempio n. 3
0
 /// <summary>
 /// Turns on a specific device.
 /// </summary>
 /// <param name="item">The device in question.</param>
 /// <returns>True if the command was successfull.</returns>
 public bool TurnOn(Device item)
 {
     return tdTurnOn(item.ID);
 }
Esempio n. 4
0
 /// <summary>
 /// Sends the bell signal.
 /// </summary>
 /// <param name="item">The device in question.</param>
 /// <returns>True if the command was successfull.</returns>
 public bool Bell(Device item)
 {
     return tdBell(item.ID);
 }