summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorboyeon-son <bson1012@gmail.com>2018-09-10 12:15:48 +0900
committerboyeon-son <bson1012@gmail.com>2018-09-10 12:15:48 +0900
commit069c8fa8e1d9bb7af6ceeed1f2f1c667ace75b22 (patch)
tree096597fd9e579d116a7f20b2500c87968843be45 /res
parent6d3a92feab8113df67520283a45954e8eef3c17e (diff)
downloadst-things-light-069c8fa8e1d9bb7af6ceeed1f2f1c667ace75b22.tar.gz
st-things-light-069c8fa8e1d9bb7af6ceeed1f2f1c667ace75b22.tar.bz2
st-things-light-069c8fa8e1d9bb7af6ceeed1f2f1c667ace75b22.zip
Initialize Smart Things Light project
Diffstat (limited to 'res')
-rwxr-xr-xres/device_def.json97
1 files changed, 97 insertions, 0 deletions
diff --git a/res/device_def.json b/res/device_def.json
new file mode 100755
index 0000000..0242a23
--- /dev/null
+++ b/res/device_def.json
@@ -0,0 +1,97 @@
+{
+ "device": [
+ {
+ "specification": {
+ "device": {
+ "deviceType": "x.wwst.d.basic",
+ "deviceName": "***TODO: ENTER YOUR DEVICE NAME***",
+ "specVersion": "core.1.1.0",
+ "dataModelVersion": "res.1.1.0"
+ },
+ "platform": {
+ "manufacturerName": "***TODO: ENTER YOUR MNID***",
+ "manufacturerUrl": "http://www.samsung.com/sec/",
+ "manufacturingDate": "2017-11-29",
+ "modelNumber": "NWSP-01",
+ "platformVersion": "1.0",
+ "osVersion": "1.0",
+ "hardwareVersion": "1.0",
+ "firmwareVersion": "1.0",
+ "vendorId": "***TODO: ENTER YOUR VID***"
+ }
+ },
+ "resources": {
+ "single": [
+ {
+ "uri": "/capability/switch/main/0",
+ "types": [
+ "x.com.st.powerswitch"
+ ],
+ "interfaces": [
+ "oic.if.a",
+ "oic.if.baseline"
+ ],
+ "policy": 3
+ },
+ {
+ "uri": "/capability/motionSensor/main/0",
+ "types": [
+ "oic.r.sensor.motion"
+ ],
+ "interfaces": [
+ "oic.if.s",
+ "oic.if.baseline"
+ ],
+ "policy": 3
+ }
+ ]
+ }
+ }
+ ],
+ "resourceTypes": [
+ {
+ "type": "x.com.st.powerswitch",
+ "properties": [
+ {
+ "key": "power",
+ "type": 3,
+ "mandatory": true,
+ "rw": 3
+ }
+ ]
+ },
+ {
+ "type": "oic.r.sensor.motion",
+ "properties": [
+ {
+ "key": "value",
+ "type": 0,
+ "mandatory": false,
+ "rw": 1
+ }
+ ]
+ }
+ ],
+ "configuration": {
+ "easySetup": {
+ "connectivity": {
+ "type": 1,
+ "softAP": {
+ "setupId": "***TODO: ENTER YOUR SETUP ID***",
+ "artik": false
+ }
+ },
+ "ownershipTransferMethod": 2
+ },
+ "wifi": {
+ "interfaces": 15,
+ "frequency": 1
+ },
+ "filePath": {
+ "svrdb": "artikserversecured.dat",
+ "provisioning": "provisioning.dat",
+ "certificate": "certificate.pem",
+ "privateKey": "privatekey.der"
+ }
+ }
+} \ No newline at end of file