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: xPL Lib events


  • Subject: Re: xPL Lib events
  • From: "Mal Lansell" <mlansell@xxxxxxxxxxxxxx>
  • Date: Wed, 1 Dec 2004 09:44:38 -0000
  • References: <26b8eee10411301338410d17be@mail.gmail.com>


According to the xPL docs, reconf and option type config items can be
changed at any time, so they should be updated whether the device is
awaiting configuration or not.

That's the behaviour in my C++ code - any config.response message received
results in the values in the config items being reapplied in the app.

Mal


----- Original Message -----
From: "Tom Van den Panhuyzen" <tomvdp@xxxxxxx>
To: <ukha_xpl@xxxxxxx>
Sent: Tuesday, November 30, 2004 9:38 PM
Subject: [ukha_xpl] xPL Lib events


>
> Sorry to be flooding the list with xPL Lib messages... but while we
> are discussing it: there is something I would like to see changed to
> its current interface.
>
> If a device is configured (i.e. it receives a config.response) there
> is an event raised only if the device was in AwaitingConfiguration
> state.
>
> But the fact that a device's configuration elements are changed (even
> if it was configured before) may interest the developer who can then
> take some action.
>
> E.g.
> private mMyValue as Double
> ...
> mValue =
ComputationalIntensiveFunction(xplListener.ConfigItem("UserItem")
> ...
>
> private sub xplmessage_received()
> ... use mValue often ...
> end sub
>
> private sub xplconfigdone()
> mValue =
ComputationalIntensiveFunction(xplListener.ConfigItem("UserItem")
> end sub
>
>
> With the current xpl lib in the example above mValue is only set the
> first time the app is configured or when the app starts.  I would like
> xplconfigdone() to be raised each time the user changes the
> configuration.
>
>
> Objections ?
>
> Regards,
> Tom
>
>
>
> 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
> Yahoo! Groups Links
>
>
>
>
>
>
>




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.