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




Hi Tom,

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

Good point.

To get around this, I would rather add a new event, e.g. called
XplReconfigDone, as it may be that the developer takes different actions
during a reconfig than they do during an initial config.
If they don't, they can just set up event handlers for both XplConfigDone
and XplReconfigDone that point to the same code.
This also has the added advantage of not affecting existing apps that
expect XplConfigDone to only be fired once.

Thoughts?

Regards,

John




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.