ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Domotics functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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.
Note For the X10 powerline protocol to work properly, electrical continuity must be maintained between devices. For example, the transmission cannot pass through an insulation transformer.
Example
// Ouverture de la connexion X10
IDConnexion is int
IDConnexion = DomoOpen("COM4", "A")  
// Allumage des lampes reliées aux modules A3 et A4
DomoSwitchOn(IDConnexion, "A3 A4")
// Equivalent à : DomoEnvoie(IDConnexion, "A3 A4", domoMarche)
...
// Extinction des lampes
DomoSwitchOff(IDConnexion, "A3 A4")
Syntax
<Result> = DomoSwitchOff(<Connection ID> , <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 errMessage constant to get more details on the error.
<Connection ID>: Integer
Identifier of the connection to use. This identifier is defined by DomoOpen.
<Address>: Character string
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: wd300com.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help