summaryrefslogtreecommitdiff
path: root/shared/res/resource.json
diff options
context:
space:
mode:
authorboyeon-son <bson1012@gmail.com>2018-11-22 08:24:09 +0900
committerboyeon-son <bson1012@gmail.com>2018-11-22 08:24:09 +0900
commit444185130573dca19232392b1d997ba9a65620ad (patch)
tree74fa8befc689522c5d4e909a5af97ff845ae6ce2 /shared/res/resource.json
parent069c8fa8e1d9bb7af6ceeed1f2f1c667ace75b22 (diff)
downloadst-things-light-444185130573dca19232392b1d997ba9a65620ad.tar.gz
st-things-light-444185130573dca19232392b1d997ba9a65620ad.tar.bz2
st-things-light-444185130573dca19232392b1d997ba9a65620ad.zip
Update for iot 5.0
Change-Id: Ia6babe5b489a9ed8a81fe51588ffb7c8916afc39
Diffstat (limited to 'shared/res/resource.json')
-rw-r--r--shared/res/resource.json52
1 files changed, 52 insertions, 0 deletions
diff --git a/shared/res/resource.json b/shared/res/resource.json
new file mode 100644
index 0000000..86e26f9
--- /dev/null
+++ b/shared/res/resource.json
@@ -0,0 +1,52 @@
+{
+ "resources": {
+ "single": [
+ {
+ "uri": "/capability/switch/main/0",
+ "types": [
+ "x.com.st.powerswitch"
+ ],
+ "interfaces": [
+ "oic.if.a",
+ "oic.if.baseline"
+ ]
+ },
+ {
+ "uri": "/capability/motionSensor/main/0",
+ "types": [
+ "oic.r.sensor.motion"
+ ],
+ "interfaces": [
+ "oic.if.s",
+ "oic.if.baseline"
+ ]
+ }
+ ]
+ },
+ "resourceTypes": [
+ {
+ "type": "x.com.st.powerswitch",
+ "properties": [
+ {
+ "key": "power",
+ "type": "string",
+ "readOnly": 3,
+ "mandatory": true,
+ "isArray": false
+ }
+ ]
+ },
+ {
+ "type": "oic.r.sensor.motion",
+ "properties": [
+ {
+ "key": "value",
+ "type": "boolean",
+ "readOnly": 1,
+ "mandatory": false,
+ "isArray": false
+ }
+ ]
+ }
+ ]
+} \ No newline at end of file