New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify result of writeProperty() method #110
Comments
Well, none of the methods are clearly defined yet. However, the next sentence for |
@zolkis your comment is meant to align the WebIDL definition for
with the actual description in prose (which is good) by removing the return value. I think resolving this inconsistency of Do you see what I mean? |
I have been thinking that many protocol bindings might not have similar HTTP/CoAP response codes (such as MQTT). Maybe its safer to stick to no result as you proposed and align WebIDL and prose. Sorry for going back and forth on this issue. |
Well, I think we need to align this with Protocol Bindings and Security TF. I am not sure whether in principle should we expose underlying protocol details in this case, but technically it would be easy resolving with a value or an object that exposes details even on a successful WoT operation (if available). In the particular case of property update, we might not need that, but in general we should have guidelines for it. |
This is still valid. |
As discussed in https://www.w3.org/2018/09/17-wot-minutes.html, So the WebIDL should be changed to return |
Fixed in #174 |
The specification does not clearly define the result of a writeProperty() method.
Does
mean returning the the set value in case of success or the HTTP status code of a PUT for example?
Note: the set value might be different to the one given in
writeProperty()
due to write property handler et ceteraThe text was updated successfully, but these errors were encountered: