PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Used to establish a connection with a X10 interface.
Only the CM11 (from Marmitek) and CM15 interfaces are supported in this version.
Note: 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.
Example
// 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. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Port Name>: Character string (with quotes)
Name of the serial port to open: "COM1", "COM2", "COM3, ... "COM32".
Note: 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.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Windows Mobile wp230com.dll
Minimum required version
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment