public class TiLight extends Object
| Modifier and Type | Method and Description |
|---|---|
static TiLight |
getInstance()
Gets the TiLight instance
|
void |
turnOff(int id)
Turn off the light
|
void |
turnOn(int id)
Turn on the light
|
void |
turnOver(int id)
Turn over the light
|
public static TiLight getInstance()
public void turnOff(int id)
throws IOException
id - the light idIOException - If a TiLight error occurspublic void turnOn(int id)
throws IOException
id - the light idIOException - If a TiLight error occurspublic void turnOver(int id)
throws IOException
id - the light idIOException - If a TiLight error occurs