[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
RE: Just trying to get to grip with xpl
- Subject: RE: Just trying to get to grip with xpl
- From: "Paul Smith" <ukha@xxxxxxxxxxxxx>
- Date: Wed, 1 Dec 2004 18:56:53 -0000
Hi John,
Thanks for that. I have to also admit I hadn't spotted the help
built-in to xplHal.
So after just a few minutes I now have the temp being told to me by TTS.
Well impressed.
Regards,
Paul
-----Original Message-----
From: John B [mailto:home-automation@xxxxxxx]
Sent: 01 December 2004 18:21
To: ukha_xpl@xxxxxxx
Subject: Re: [ukha_xpl] Just trying to get to grip with xpl
Hi Paul,
> So I have created a determinator which runs when I get a
> message from the sensor. I want to set a global with the value
returned,
> but all I see at the mo is a way to set the figure.
Assuming the temperature reading is contained in the current= element
from the incoming message, put:
{XPL::CURRENT}
as the value of the global.
Anything inside curly brackets is treated as a special value.
The XPL:: prefix means substitute the value of the global with a value
from the incoming xPL message.
So whatever is contained within the "current=" tag from the
incoming
sensor message will now be put into the global.
HTH,
John
xPL Links: http://www.xplproject.org.uk http://www.xplhal.com
http://www.xpl.myby.co.uk
To Post a Message: ukha_xpl@xxxxxxx
To Subscribe: ukha_xpl-subscribe@xxxxxxx
To Unsubscribe: ukha_xpl-unsubscribe@xxxxxxx
xPL Main Index |
xPL Thread Index |
xPL Home |
Archives Home
|