"resources": {
"single": [
{
- "uri": "/capability/switch/main/0",
+ "uri": "/capability/motionSensor/main/0",
"types": [
- "x.com.st.powerswitch"
+ "oic.r.sensor.motion"
],
"interfaces": [
- "oic.if.a",
+ "oic.if.s",
"oic.if.baseline"
]
},
{
- "uri": "/capability/motionSensor/main/0",
+ "uri": "/capability/switch/main/0",
"types": [
- "oic.r.sensor.motion"
+ "x.com.st.powerswitch"
],
"interfaces": [
- "oic.if.s",
+ "oic.if.a",
"oic.if.baseline"
]
}
},
"resourceTypes": [
{
- "type": "x.com.st.powerswitch",
+ "type": "oic.r.sensor.motion",
"properties": [
{
- "key": "power",
- "type": "string",
- "readOnly": 3,
- "mandatory": true,
+ "key": "value",
+ "type": "boolean",
+ "readOnly": 1,
+ "mandatory": false,
"isArray": false
}
]
},
{
- "type": "oic.r.sensor.motion",
+ "type": "x.com.st.powerswitch",
"properties": [
{
- "key": "value",
- "type": "boolean",
- "readOnly": 1,
- "mandatory": false,
+ "key": "power",
+ "type": "string",
+ "readOnly": 3,
+ "mandatory": true,
"isArray": false
}
]