|
|
|
|
DomoOpen (Function) In french: DomoOuvre Used to establish a connection with a X10 interface. Only the CM11 (from Marmitek) and CM15 interfaces are supported in this version. Remark: In order for the X10 protocol to operate properly through power-line carrier, continuous power is required between the devices. For example, the transmission cannot pass through an insulation transformer. // Open the X10 connection ConnectionID is int ConnectionID = DomoOpen("COM4", "A") // Error occurred? IF ConnectionID = 0 THEN Error(ErrorInfo(errMessage)) ELSE // Switch on the lamps connected to the A3 and A4 modules DomoSwitchOn(ConnectionID, "A3 A4") // Equivalent to: DomoSend(ConnectionID, "A3 A4", domoOn) END ... // Close the connection DomoClose(ConnectionID)
Syntax
<Result> = DomoOpen(<Port name> , <House code> [, <Type of interface>])
<Result>: Integer Identifier of the connection, 0 if an error occurred. This identifier will be used by all the DomoXXX functions. If an error occurs, use ErrorInfo with the errMessage constant to get more details on the error. <Port name>: Character string Name of the serial port to open: "COM1", "COM2", "COM3, ... "COM32".Remark: this parameter is ignored for the CM15 interfaces. <House code>: Character string House code that must be managed by the X10 interface. The house code corresponds to a letter found between A and P.If the X10 interface is reinitialized, this house code is used to reconfigure this interface. <Type of interface>: Optional character string Type of X10 interface connected to the current computer. | | "CM11" (Default value) | CM11. interface | "CM15" | CM15. interface |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|