-
Notifications
You must be signed in to change notification settings - Fork 63
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
[question] How to describe observeOnly properties? #810
Comments
In that case modeling with an event makes most sense IMHO. One could argue about the difference between observing (changes reported) and events (all occurences reported), but in this case the meaning is to report all changes, which is fine.
The [observable, readable, writeable] tuple was a pretty good solution IMHO, we changed it for mostly syntactic and tradition-esthetic reasons. |
This is actually something what I expect in a TD design for MQTT binding:
|
In this case, this will be explained in the protocol bindings document. I am copying this issue over there as well. |
Closing since it is at protocol bindings |
In the current specification, we cannot describe if a property is only observable and not readable and writeable. In the case of MQTT, if one publishes a message without a retain flag or if the broker doesn't support retain, only the current subscribers of the topic will get the message, hence they will be observing. A
readproperty
via MQTT would be possible only if the retain flag is settable to true. I think this is a real use case for MQTT Things. Some solutions:observeOnly
for properties. This would be quite confusing sincereadOnly
orwriteOnly
equal tofalse
would mean that it is observable as well. This needs spec change and would be possible only for next version. Even then, it is not a perfect solution since it makes it impossible to havereadable
andwriteable
but notobservable
properties.writeable
,readable
. This would be perfect solution to fix this little thing but would open all the issues of havingwriteable
discussed in writable vs. readOnly #209The text was updated successfully, but these errors were encountered: