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
Today there is a mismatch, we require a float/int JSON array (values not quoted), but when we read the value we get string values back
Test Client> setValue Vehicle.Cabin.SeatPosCount ["2","35"]
{
"error": "ValueError in casting the value."
}
Test Client> setValue Vehicle.Cabin.SeatPosCount [2,35]
OK
Test Client> getValue Vehicle.Cabin.SeatPosCount
{
"path": "Vehicle.Cabin.SeatPosCount",
"value": {
"value": {
"values": [
"2",
"35"
]
},
"timestamp": "2023-07-25T07:28:29.674928+00:00"
}
}
This can be compared with individual float/int values where we get back a float/int, not a string value
Test Client> setValue Vehicle.Speed 43
OK
Test Client> getValue Vehicle.Speed
{
"path": "Vehicle.Speed",
"value": {
"value": 43.0,
"timestamp": "2023-07-25T07:29:06.657089+00:00"
}
}
Shouldn't the reply be like:
Test Client> getValue Vehicle.Cabin.SeatPosCount
{
"path": "Vehicle.Cabin.SeatPosCount",
"value": {
"value": {
"values": [
2, /* I.e. no quotes*/
35 /* I.e. no quotes*/
]
},
"timestamp": "2023-07-25T07:28:29.674928+00:00"
}
}
I have not investigated further if the inconsistency concerns how data is transferred in the Proto-messages, or if it is rather how the client parses/transforms the content.
The text was updated successfully, but these errors were encountered:
We are about to archive this repo soon. If you consider this issue as important please file a new issue at one of the new Kuksa repos at https://github.com/eclipse-kuksa
Today there is a mismatch, we require a float/int JSON array (values not quoted), but when we read the value we get string values back
This can be compared with individual float/int values where we get back a float/int, not a string value
Shouldn't the reply be like:
I have not investigated further if the inconsistency concerns how data is transferred in the Proto-messages, or if it is rather how the client parses/transforms the content.
The text was updated successfully, but these errors were encountered: