Init master branch with timer code
[apps/native/st-things-light.git] / shared / res / resource.json
1 {
2   "resources": {
3     "single": [
4       {
5         "uri": "/capability/motionSensor/main/0",
6         "types": [
7           "oic.r.sensor.motion"
8         ],
9         "interfaces": [
10           "oic.if.s",
11           "oic.if.baseline"
12         ]
13       },
14       {
15         "uri": "/capability/switch/main/0",
16         "types": [
17           "x.com.st.powerswitch"
18         ],
19         "interfaces": [
20           "oic.if.a",
21           "oic.if.baseline"
22         ]
23       }
24     ]
25   },
26   "resourceTypes": [
27     {
28       "type": "oic.r.sensor.motion",
29       "properties": [
30         {
31           "key": "value",
32           "type": "boolean",
33           "readOnly": 1,
34           "mandatory": false,
35           "isArray": false
36         }
37       ]
38     },
39     {
40       "type": "x.com.st.powerswitch",
41       "properties": [
42         {
43           "key": "power",
44           "type": "string",
45           "readOnly": 3,
46           "mandatory": true,
47           "isArray": false
48         }
49       ]
50     }
51   ]
52 }