w3c / automotive

W3C Automotive Working Group Specifications
Other
146 stars 68 forks source link

Set request syntax for arrays #420

Closed crea7or closed 2 years ago

crea7or commented 2 years ago

Vehicle Signal Specification supports arrays, but there is no documentation on how to set them, even receive format is not mentioned in the transport documentation. I suppose set should be documented like this?

{
  "action": "set",
  "path": "Vehicle/Diagnostic/DTC",
  "value": ["823837", "928273", "736356"],
  "requestId": "5687"
}

and get will use datapoint mechanism in favor of the regular value get:

{
  "action": "get",
  "data": {
    "dp": {
      "ts": "2020-04-15T13:37:00Z",
      "value": [
        "823837",
        "928273",
        "736356"
      ]
    },
    "path": "Vehicle/Diagnostic/DTC"
  },
  "requestId": "5687"
}
UlfBj commented 2 years ago

Fixed in PR421