You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a plugin which maintains some paths and I want to add a meta value alongside the data path which describes the path value and its units. So, I want to use static property update.
Before the static update is executed the target key does not exist in the Signal K tree.
I generate a delta expressing the required static update.
So, the meta property has been added just fine, but where has that pesky 'mmsi' property appeared from?. A ghost in the machine?
The text was updated successfully, but these errors were encountered:
preeve9534
changed the title
Static property update adds a rogue property to target path
Static property update adds a rogue 'mmsi' property to target path
Dec 22, 2020
They've been a long time coming - now the plan is to iron out remaining wrinkles by using this feature and then add them to the specification.
In general the context was originally perceived to work like you've used it. I can't remember the exact details, but supporting arbitrary levels proved to be problematic, and the current implementation assumes that it is fixed to two levels. This is probably not documented as well as it should or at all.
Without testing or looking this up in the code there's most likely logic to fill the mmsi property from contexts with mmsi identity, and it is populated where the context points, thus the rogue property.
The meta delta feature should get you where you want to go, so I am closing this. If there's more to this feel free to reopen.
I have a plugin which maintains some paths and I want to add a meta value alongside the data path which describes the path value and its units. So, I want to use static property update.
Before the static update is executed the target key does not exist in the Signal K tree.
I generate a delta expressing the required static update.
And commit it with
app.handleMessage
.After the update my path value is:
So, the meta property has been added just fine, but where has that pesky 'mmsi' property appeared from?. A ghost in the machine?
The text was updated successfully, but these errors were encountered: