-
Notifications
You must be signed in to change notification settings - Fork 230
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
Provide a command + APIs in order to calculate+retrieve deltas of desired vs. properties #699
Comments
I prefer a JSON Patch document as it matches the requirements and first and foremost because it is a well-known standard. |
Maybe this is not required at all and #700 is sufficient in order for a device to retrieve all "unapplied" |
From my point of view, the desired properties already are the "delta" (or diff/patch). Moreover, the device knows best how to calculate the delta (if it even needs one) for its business case and the value types it uses. |
@ffendt one concern could be that the Not clearing the |
Imho we should never clear the desired state automatically and leave this to the device itself. It would be convenient to just return the diff between the reported and desired values to the device (or, using a query flag, returning all desired values). If the device wants to have a clean desired representation, it can delete the unwanted values itself. Btw: did I misunderstand the meaning of |
Oh, that's not what I meant. [
{ "op": "replace", "path": "/features/Thermostat/properties/configuration/target-temperature", "value": 22.0 }
] |
As part of #696 a new functionality shall be introduced in order to calculate a delta/diff/patch between the
desiredProperties
and theproperties
(or reported) state of a digital twin (thing) or of a single feature of it.The format has to be defined, it could be:
The following APIs are added:
The text was updated successfully, but these errors were encountered: