summaryrefslogtreecommitdiff
path: root/res/device_def.json
blob: 00d15dc6ecb8bd1493f29c0aeed6890a0669a080 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
  "device": [
    {
      "specification": {
        "device": {
          "deviceType": "x.wwst.d.basic",
          "deviceName": "!!!YOUR_DEVICE_NAME!!!",
          "specVersion": "core.1.1.0",
          "dataModelVersion": "res.1.1.0"
        },
        "platform": {
          "manufacturerName": "!!!YOUR_MNID!!!",
          "manufacturerUrl": "http://",
          "manufacturingDate": "2017-11-29",
          "modelNumber": "NWSP-01",
          "platformVersion": "1.0",
          "osVersion": "1.0",
          "hardwareVersion": "1.0",
          "firmwareVersion": "1.0",
          "vendorId": "!!!YOUR_VENDOR_ID!!!"
        }
      },
      "resources": {
        "single": [
          {
            "uri": "/capability/airQualitySensor/main/0",
            "types": [
              "x.com.st.airqualitylevel"
            ],
            "interfaces": [
              "oic.if.s",
              "oic.if.baseline"
            ],
            "policy": 3
          }
        ]
      }
    }
  ],
  "resourceTypes": [
    {
      "type": "x.com.st.airqualitylevel",
      "properties": [
        {
          "key": "airQuality",
          "type": 2,
          "mandatory": true,
          "rw": 1
        },
        {
          "key": "range",
          "type": 7,
          "mandatory": true,
          "rw": 1
        }
      ]
    }
  ],
  "configuration": {
    "easySetup": {
      "connectivity": {
        "type": 1,
        "softAP": {
          "setupId": "!!!YOUR_ONBOARDING_ID!!!",
          "artik": false
        }
      },
      "ownershipTransferMethod": 2
    },
    "wifi": {
      "interfaces": 15,
      "frequency": 1
    },
    "filePath": {
      "svrdb": "artikserversecured.dat",
      "provisioning": "provisioning.dat",
      "certificate": "certificate.pem",
      "privateKey": "privatekey.der"
    }
  }
}