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]

xPL Lib events


  • Subject: xPL Lib events
  • From: Tom Van den Panhuyzen <tomvdp@xxxxxxxxx>
  • Date: Tue, 30 Nov 2004 22:38:10 +0100


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 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.