diff options
Diffstat (limited to 'shared/res/resource.json')
-rw-r--r-- | shared/res/resource.json | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/shared/res/resource.json b/shared/res/resource.json new file mode 100644 index 0000000..49af0ce --- /dev/null +++ b/shared/res/resource.json @@ -0,0 +1,37 @@ +{ + "resources": { + "single": [ + { + "uri": "/capability/airQualitySensor/main/0", + "types": [ + "x.com.st.airqualitylevel" + ], + "interfaces": [ + "oic.if.s", + "oic.if.baseline" + ] + } + ] + }, + "resourceTypes": [ + { + "type": "x.com.st.airqualitylevel", + "properties": [ + { + "key": "airQuality", + "type": "double", + "readOnly": 1, + "mandatory": true, + "isArray": false + }, + { + "key": "range", + "type": "double", + "readOnly": 1, + "mandatory": true, + "isArray": true + } + ] + } + ] +}
\ No newline at end of file |