-
Notifications
You must be signed in to change notification settings - Fork 20
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
Prototype Persistence provider for AGL persistence API #63
Comments
vss_release_4.0.json
|
@g-scott-murray you commented elsewhere
I can understand, that it feels cumbersome. In the end "who does the work, can decide" :D The advantage is, some people like to consolidate all VSS related info in... well VSS.... Maybe an option would be writing an acutal overlay (in YAML), and parsing that. New VSS stools become quite relaxed wrt to "Incomplete" VSS specs as overlay, so a config for the example might look like this Vehicle.Cabin.Infotainment.HMI.DisplayOffDuration:
persist: true
datatype: "uint8"
Vehicle.Cabin.Infotainment.Media.Volume:
persist: true
datatype: "uint16" That might be easily parsed instead of the json in my example (again, actually not even datatype is necessary but I assume it might be needed to type it directly in GRPC). People who do want a consolidated VSS could do (assuming the file above called test.vspec)
But users of the persistence plugin/provider would never need to do that (side note: I was thinking "persist: false" might still be usfeul for the plugin, maybe there are datapoints we want to populate upon start but NOT subscribe/update. E.g. is somebody wants to set VIN, Vehicle color or such things...) |
Hello there,
as we do not yet know where the persistence API will end up, and want to write this in Rust/C++ anyway I just open this issue for discussion.
here is a complete - albeit beyond ugly - provider that does everything:
The code
This is based on https://github.com/LSchwiedrzik/agl-persistent-storage-api/tree/master
@LSchwiedrzik "just" need to rewirte in Rust.... As seperate component, or maybe an (optional) feature directly in persistent-storage
Databroker needs to run, everything to get started with that should be in https://github.com/eclipse-kuksa/kuksa-databroker/blob/main/doc/quickstart.md
fyi @eriksven @g-scott-murray
The text was updated successfully, but these errors were encountered: