|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface X10Proxy
A X10 proxy service created for test and demo purpose in UbiCollab. This bundle has a prerequisite: It requires that the Java comm API is installed on the computer it runs on.
Method Summary | |
---|---|
void |
dimDevice(java.lang.String house,
int unit,
int cmnd,
int percentage)
Method to send dim or brighten commands to the given X10 device. |
void |
sendCommand(java.lang.String house,
int unit,
boolean turnOn)
Method to send an X10 on/off command to a device with a given address. |
boolean |
startSerialConnection(java.lang.String comPort)
Start a serial connection to a CM11A serial X10 controller, on the provided COM port. |
void |
stopSerialConnection()
Stop the ongoing serial connection and relase resources used. |
Method Detail |
---|
boolean startSerialConnection(java.lang.String comPort)
comPort
- the com port to use, e.g. COM1
void stopSerialConnection()
void sendCommand(java.lang.String house, int unit, boolean turnOn)
This method assumes that a serial connection to a X10 device already have been started. Nothing will hapen if one does not exist.
turnOn
- the turn onunit
- the unit address (1-16)house
- the house address (A-P)void dimDevice(java.lang.String house, int unit, int cmnd, int percentage)
This method assumes that a serial connection to a X10 device already have been started. Nothing will hapen if one does not exist.
cmnd
- Either 0 for dim or 1 for brightenunit
- the unit address (1-16)house
- the house address (A-P)percentage
- the level to change between 1 and 100 (persentage).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |