summaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/res/illuminance.pngbin57662 -> 0 bytes
-rw-r--r--shared/res/master.json18
-rw-r--r--shared/res/resource.json52
3 files changed, 70 insertions, 0 deletions
diff --git a/shared/res/illuminance.png b/shared/res/illuminance.png
deleted file mode 100644
index 9765b1b..0000000
--- a/shared/res/illuminance.png
+++ /dev/null
Binary files differ
diff --git a/shared/res/master.json b/shared/res/master.json
new file mode 100644
index 0000000..4ec9a65
--- /dev/null
+++ b/shared/res/master.json
@@ -0,0 +1,18 @@
+{
+ "devices": [
+ {
+ "deviceType": "x.wwst.d.basic",
+ "deviceName": "*** YOUR DEVICE NAME ***",
+ "mnid": "*** YOUR NMID ***",
+ "vid": "*** YOUR VENDOR ID ***"
+ }
+ ],
+ "configuration": {
+ "easySetup": {
+ "mode": 1,
+ "setupId": "*** YOUR SETUP ID ***"
+ },
+ "otm": 2,
+ "crtType": 1
+ }
+} \ No newline at end of file
diff --git a/shared/res/resource.json b/shared/res/resource.json
new file mode 100644
index 0000000..1a4eda9
--- /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/illuminanceMeasurement/main/0",
+ "types": [
+ "oic.r.sensor.illuminance"
+ ],
+ "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.illuminance",
+ "properties": [
+ {
+ "key": "illuminance",
+ "type": "double",
+ "readOnly": 1,
+ "mandatory": true,
+ "isArray": false
+ }
+ ]
+ }
+ ]
+} \ No newline at end of file