-
Notifications
You must be signed in to change notification settings - Fork 51
Give kuksa-client ability to encode array values to set and get them #542
Give kuksa-client ability to encode array values to set and get them #542
Conversation
While testing myself found the issue that setting with 12,24,35 would not work because then it would set 1,2,2,4,3,5 |
be27833
to
c1f87ce
Compare
Two observations: It seems quotes are required (for me at least) if including blanks. Do we possibly have (or need) some documentation giving examples on how you specify different values on the command line.
Secondly it seems that we cannot set an empty array:
|
This is documented in the README. If you want to use spaces between elements [1,2,3] would work. This is an old issue/problem. Maybe we could fix that too some time. |
To the second comment. Is this even a use case? Do we want to support this? But yes I see that there is some improvement there. Will try something out. |
c1f87ce
to
f91cd28
Compare
The newest commit allows the ability to set arrays with spaces like [1, 2, 3] therefore what now is possible to is setValue Vehicle.Speed 1 1 1 and this gets an
I think this is fine. Opinions? |
4496725
to
6e04e2c
Compare
From reading the comments, seems fine to me @erikbosch Do you consider this done now? |
Not done.
Test Client> getValue Vehicle.OBD.DTCList |
Needs a rework of trailing whitespaces too Test Client> setValue Vehicle.Powertrain.FuelSystem.SupportedFuel [E5_95,E10_95] Test Client> getValue Vehicle.Powertrain.FuelSystem.SupportedFuel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 🌵
Example: