diff options
author | Jin Yoon <jinny.yoon@samsung.com> | 2018-11-23 08:56:27 +0900 |
---|---|---|
committer | Jin Yoon <jinny.yoon@samsung.com> | 2018-11-23 08:56:45 +0900 |
commit | 09c3cbe10ab086ba5ad3886520458384dd9a9049 (patch) | |
tree | f9c7e965e8fd74a67ead18231aebff71a61d8473 /shared | |
parent | b1c8894e5597c63e745f844858052891ebae0370 (diff) | |
download | st-things-blind-09c3cbe10ab086ba5ad3886520458384dd9a9049.tar.gz st-things-blind-09c3cbe10ab086ba5ad3886520458384dd9a9049.tar.bz2 st-things-blind-09c3cbe10ab086ba5ad3886520458384dd9a9049.zip |
Change all the SmartThings APIs for Tizen 5.0
Change-Id: I2816a7a9bdd554b493e37c1c356ba2342ed483d5
Diffstat (limited to 'shared')
-rw-r--r-- | shared/res/master.json | 18 | ||||
-rw-r--r-- | shared/res/resource.json | 52 | ||||
-rw-r--r-- | shared/res/st-things-blind.png (renamed from shared/res/smart-blind.png) | bin | 57662 -> 57662 bytes |
3 files changed, 70 insertions, 0 deletions
diff --git a/shared/res/master.json b/shared/res/master.json new file mode 100644 index 0000000..2061f1e --- /dev/null +++ b/shared/res/master.json @@ -0,0 +1,18 @@ +{ + "devices": [ + { + "deviceType": "oic.d.light", + "deviceName": "Smart_Blind", + "mnid": "***Your MNID***", + "vid": "Blind_Vendor" + } + ], + "configuration": { + "easySetup": { + "mode": 1, + "setupId": "***Your Setup ID" + }, + "otm": 2, + "crtType": 1 + } +} diff --git a/shared/res/resource.json b/shared/res/resource.json new file mode 100644 index 0000000..aa2cde5 --- /dev/null +++ b/shared/res/resource.json @@ -0,0 +1,52 @@ +{ + "resources": { + "single": [ + { + "uri": "/capability/illuminanceMeasurement/main/0", + "types": [ + "oic.r.sensor.illuminance" + ], + "interfaces": [ + "oic.if.s", + "oic.if.baseline" + ] + }, + { + "uri": "/capability/doorControl/main/0", + "types": [ + "x.com.st.doorcontrol" + ], + "interfaces": [ + "oic.if.baseline", + "oic.if.a" + ] + } + ] + }, + "resourceTypes": [ + { + "type": "oic.r.sensor.illuminance", + "properties": [ + { + "key": "illuminance", + "type": "double", + "readOnly": 1, + "mandatory": true, + "isArray": false + } + ] + }, + { + "type": "x.com.st.doorcontrol", + "properties": [ + { + "key": "doorState", + "type": "string", + "readOnly": 3, + "mandatory": true, + "isArray": false + } + ] + } + ] +}
\ No newline at end of file diff --git a/shared/res/smart-blind.png b/shared/res/st-things-blind.png Binary files differindex 9765b1b..9765b1b 100644 --- a/shared/res/smart-blind.png +++ b/shared/res/st-things-blind.png |