The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: sending xPL commands from an ASP page




> is there any way to send xPL commands from an ASP page (ie jscript or
> vbscript)?  is there any example code that does this?  do i need to
> create an activexobject using xpl.ocx?

If you are using ASP.NET, you can use the DLL that ships with the xPLHal
Web Access software in your own applications to easily send xPL messages,
and display the value of xPLHal globals.

E.g. to switch on an X10 light, your page might look like this:

<%@ Page Language="VB" inherits="xplhal.xplhalbase"
%>
<html>

<head>
<title>Sample page for X10 control</title>
</head>

<body>
<%
SendXplMsg("","*","x10.basic","command=on"
& vbLf & "device=d3")
%>

<p>The X10 light at address D3 has now been switched on.</p>
</body>
</html>




xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.