[Sub] Parameters read request

Subscribe to this topic to receive read variables requests.
Publish on read variables response to send the requested variables.

Request Topic and Payload

Topic

things5-production/v1/devices/<device-id>/cmd/read_variables_req

Payload Representation

{
  "request_id": "UUID",
  "assets": ["configuration"],
  "filters": {
    "configuration": ["var_a","var_b"]
  }
}

Payload Parameters

typedescriptionexample
request_idthe request id to be sent back by the device when sending the response
assetslist of requested variables. Can be "configuration", "states", "metrics"["configuration", "states"]
filters (optional)an object with the list of fields to request per each asset

Expected response

📘

Response has to be sent into the read variables response: