ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Domotics functions
  • Limitation
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Used to find out whether an electrical device (compatible with the X10 protocol) is switched on or off.
If the specified device is not currently connected to the power, the status stored in the X10 interface is returned.
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
DomoSend(ConnectionID, "A3 A4", domoOn)
// Equivalent to: DomoSwitchOn(ConnectionID, "A3 A4")
...
// Status of A3 lamp
IF DomoStatus(ConnectionID, "A3") = True THEN
Info("The A3 lamp is switched on")
ELSE
Info("The A3 lamp is switched off")
END
Syntax
<Result> = DomoStatus(<Connection identifier> , <Address>)
<Result>: Boolean
  • True if the specified device is switched on,
  • False otherwise. If the specified device is not currently connected to the power, the status stored in the X10 interface is returned.
<Connection identifier>: Integer
Identifier of the connection to use. This identifier is defined by DomoOpen.
<Address>: Character string
Address of electrical device compatible with the relevant X10 protocol.
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".
Remarks

Limitation

DomoStatus does not work with a CM15 PC-X10 interface.
Component: wd290com.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help