PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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
Switches off one or more electrical devices compatible with the X10 protocol. These devices have been switched on by DomoSwitchOn or DomoSend.
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.
Example
// Open the X10 connection
ConnectionID is int
ConnectionID = DomoOpen("COM4", "A")  
// Switch on the lamps connected to the A3 and A4 modules
DomoSwitchOn(ConnectionID, "A3 A4")
// Equivalent to: DomoSend(ConnectionID, "A3 A4", domoOn)
...
// Switch off the lamps
DomoSwitchOff(ConnectionID, "A3 A4")
Syntax
<Result> = DomoSwitchOff(<Connection identifier> , <Address>)
<Result>: Boolean
  • True if the electrical devices have been switched off,
  • False otherwise (transmission error, device did not respond, etc.). If an error occurs, use ErrorInfo with the constant errMessage for more details on the error.
<Connection identifier>: Integer
Identifier of the connection to use. This identifier is defined by DomoOpen.
<Address>: Character string (with quotes)
Address of the electrical devices (compatible with the X10 protocol) that must be switched off.
The address format is as follows: <House code><Module code>
Where:
<House code> corresponds to a letter found between A and P.
<Module code> corresponds to a number found between 1 and 16.
For example: "A1", "B14".
To specify several addresses, the addresses must be separated by a space character. For example: "A1 A3 B15".
Component : wd250com.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment