summaryrefslogtreecommitdiff
path: root/shared/res/resource.json
blob: 49af0cebe664ea9fab0bcbb20e7297675dfbc7e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  "resources": {
    "single": [
      {
        "uri": "/capability/airQualitySensor/main/0",
        "types": [
          "x.com.st.airqualitylevel"
        ],
        "interfaces": [
          "oic.if.s",
          "oic.if.baseline"
        ]
      }
    ]
  },
  "resourceTypes": [
    {
      "type": "x.com.st.airqualitylevel",
      "properties": [
        {
          "key": "airQuality",
          "type": "double",
          "readOnly": 1,
          "mandatory": true,
          "isArray": false
        },
        {
          "key": "range",
          "type": "double",
          "readOnly": 1,
          "mandatory": true,
          "isArray": true
        }
      ]
    }
  ]
}