W3C home > Mailing lists > Public > public-wot-ig@w3.org > December 2015

AW: WebIDL for Thing API

From: Peintner, Daniel (ext) <daniel.peintner.ext@siemens.com>
Date: Tue, 15 Dec 2015 14:56:17 +0000
To: "Bassbouss, Louay" <louay.bassbouss@fokus.fraunhofer.de>, "public-wot-ig@w3.org" <public-wot-ig@w3.org>
Message-ID: <D94F68A44EB1954A91DE4AE9659C5A980FDE7150@DEFTHW99EH1MSX.ww902.siemens.net>
Hi Louay, all,

Thank you very much for the initial WebIDL draft. It looks very promising!

Looking at the draft I was wondering how we can model aspects such as "a property value has been changed" or "an action has been called". A thing might be interested in such events and we should allow to get a notification to update the UI or to react elsewise.

The thing description tutorial [1] does not really mention this aspect in details. That said, it offers the attribute "Stability" that I think is meant to cover this idea w.r.t. property...

Hence, I was wondering whether we could have something like the following in the Interface Thing

addPropertyChangedListener(DOMString propertyName, ThingEventListener listener)
addActionCalledListener(DOMString actionName, ThingEventListener listener)

Or, do you have any other proposal/idea how we could achieve that in a better manner?


-- Daniel

[1] https://github.com/w3c/wot/blob/master/TF-TD/Tutorial.md

Von: Bassbouss, Louay [louay.bassbouss@fokus.fraunhofer.de]
Gesendet: Montag, 14. Dezember 2015 13:27
An: public-wot-ig@w3.org
Betreff: WebIDL for Thing API

Dear group members,

I just submitted the initial WebIDL draft of the Thing API [1] I demonstrated @TPAC in sapporo. It considers also feedback I received from some of you. It is just a draft to start with. Can we put an Agenda item to discuss it in the next phone call.


[1]: https://github.com/w3c/wot/blob/master/TF-AP/thing-api/thing-api-webidl.md
Received on Tuesday, 15 December 2015 14:56:50 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:26:53 UTC