8f33c0da520ad1bf88d49a0134e7ff6c20a45c04
[apps/native/blind-motor.git] / res / device_def.json
1 {
2   "device": [
3     {
4       "specification": {
5         "device": {
6           "deviceType": "x.wwst.d.basic",
7           "deviceName": "blind",
8           "specVersion": "core.1.1.0",
9           "dataModelVersion": "res.1.1.0"
10         },
11         "platform": {
12           "manufacturerName": "*** YOUR DEVICE NAME ***",
13           "manufacturerUrl": "http://www.samsung.com/sec/",
14           "manufacturingDate": "2017-11-29",
15           "modelNumber": "BLIND-01",
16           "platformVersion": "1.0",
17           "osVersion": "1.0",
18           "hardwareVersion": "1.0",
19           "firmwareVersion": "1.0",
20           "vendorId": "*** YOUR VENDOR ID ***"
21         }
22       },
23       "resources": {
24         "single": [
25           {
26             "uri": "/capability/switch/main/0",
27             "types": [
28               "x.com.st.powerswitch"
29             ],
30             "interfaces": [
31               "oic.if.a",
32               "oic.if.baseline"
33             ],
34             "policy": 3
35           },
36           {
37             "uri": "/capability/illuminanceMeasurement/main/0",
38             "types": [
39               "oic.r.sensor.illuminance"
40             ],
41             "interfaces": [
42               "oic.if.s",
43               "oic.if.baseline"
44             ],
45             "policy": 3
46           },
47           {
48             "uri": "/capability/doorControl/main/0",
49             "types": [
50               "x.com.st.doorcontrol"
51             ],
52             "interfaces": [
53               "oic.if.baseline",
54               "oic.if.a"
55             ],
56             "policy": 3
57           }
58         ]
59       }
60     }
61   ],
62   "resourceTypes": [
63     {
64       "type": "x.com.st.powerswitch",
65       "properties": [
66         {
67           "key": "power",
68           "type": 3,
69           "mandatory": true,
70           "rw": 3
71         }
72       ]
73     },
74     {
75       "type": "oic.r.sensor.illuminance",
76       "properties": [
77         {
78           "key": "illuminance",
79           "type": 2,
80           "mandatory": true,
81           "rw": 1
82         }
83       ]
84     },
85     {
86       "type": "x.com.st.doorcontrol",
87       "properties": [
88         {
89           "key": "doorState",
90           "type": 3,
91           "mandatory": true,
92           "rw": 3
93         }
94       ]
95     }
96   ],
97   "configuration": {
98     "easySetup": {
99       "connectivity": {
100         "type": 1,
101         "softAP": {
102           "setupId": "001",
103           "artik": false
104         }
105       },
106       "ownershipTransferMethod": 2
107     },
108     "wifi": {
109       "interfaces": 15,
110       "frequency": 1
111     },
112     "filePath": {
113       "svrdb": "artikserversecured.dat",
114       "provisioning": "provisioning.dat",
115       "certificate": "certificate.pem",
116       "privateKey": "privatekey.der"
117     }
118   }
119 }