airFlowDirection / status:dead

Hello all.

I’ve managed this.

You need to use this (the resouce, I got this using OCF Device Spy seconds after I power-on my router because the A/C close all ports after some hours running)

Return /oic/res

[
   {
      "di":"xxxxxx",
      "links":[
         {
            "href":"/oic/sec/doxm",
            "rt":[
               "oic.r.doxm"
            ],
            "if":[
               "oic.if.baseline"
            ],
            "p":{
               "bm":1,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/oic/sec/pstat",
            "rt":[
               "oic.r.pstat"
            ],
            "if":[
               "oic.if.baseline"
            ],
            "p":{
               "bm":1,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/oic/d",
            "rt":[
               "oic.wk.d",
               "oic.d.airconditioner"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.r"
            ],
            "p":{
               "bm":1,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/oic/p",
            "rt":[
               "oic.wk.p"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.r"
            ],
            "p":{
               "bm":1,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/device/0",
            "rt":[
               "x.com.samsung.devcol",
               "oic.wk.col"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.ll",
               "oic.if.b"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/power/0",
            "rt":[
               "oic.r.switch.binary"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/power/vs/0",
            "rt":[
               "x.com.samsung.da.operation"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/temperature/desired/0",
            "rt":[
               "oic.r.temperature"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/temperature/current/0",
            "rt":[
               "oic.r.temperature"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.s"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/temperatures/vs/0",
            "rt":[
               "x.com.samsung.da.temperatures"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/airflow/0",
            "rt":[
               "oic.r.airflow"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/airflow/vs/0",
            "rt":[
               "x.com.samsung.da.wind"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/mode/0",
            "rt":[
               "oic.r.mode"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/mode/vs/0",
            "rt":[
               "x.com.samsung.da.mode"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/diagnosis/vs/0",
            "rt":[
               "x.com.samsung.da.diagnosis"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/alarms/vs/0",
            "rt":[
               "x.com.samsung.da.alarms"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/energy/consumption/0",
            "rt":[
               "oic.r.energy.consumption"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/energy/consumption/vs/0",
            "rt":[
               "x.com.samsung.da.energyconsumption"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/configuration/vs/0",
            "rt":[
               "x.com.samsung.da.configuration"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":1,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/file/information/vs/0",
            "rt":[
               "x.com.samsung.file.information"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":1,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/humidity/0",
            "rt":[
               "oic.r.humidity"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/consumable/vs/0",
            "rt":[
               "x.com.samsung.da.consumable"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.s"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/humidity/vs/0",
            "rt":[
               "x.com.samsung.da.humidity"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/multidevice/vs/0",
            "rt":[
               "x.com.samsung.da.multidevice"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/sec/devices",
            "rt":[
               "x.com.samsung.devcol",
               "oic.wk.col"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.ll",
               "oic.if.b"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/sec/accesspointlist",
            "rt":[
               "x.com.samsung.accesspointlist"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.s"
            ],
            "p":{
               "bm":3,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/actions/vs/0",
            "rt":[
               "x.com.samsung.da.actions"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":1,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/file/transfer/vs/0",
            "rt":[
               "x.com.samsung.file.transfer"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/sec/provisioninginfo",
            "rt":[
               "x.com.samsung.provisioninginfo"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/information/vs/0",
            "rt":[
               "x.com.samsung.da.information"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/hass/state/vs/0",
            "rt":[
               "x.com.samsung.da.hass.state"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/hass/command/vs/0",
            "rt":[
               "x.com.samsung.da.hass.command"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/file/list/vs/0",
            "rt":[
               "x.com.samsung.file.list"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.s"
            ],
            "p":{
               "bm":1,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/file/transfer/chunk/vs/0",
            "rt":[
               "x.com.samsung.file.chunk"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":1,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/rm/state/vs/0",
            "rt":[
               "x.com.samsung.da.rm.state"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/rm/micomdata/vs/0",
            "rt":[
               "x.com.samsung.da.rm.micomdata"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/device/1",
            "rt":[
               "x.com.samsung.devcol",
               "oic.wk.col"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.ll",
               "oic.if.b"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/power/1",
            "rt":[
               "oic.r.switch.binary"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/power/vs/1",
            "rt":[
               "x.com.samsung.da.operation"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/temperature/desired/1",
            "rt":[
               "oic.r.temperature"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/temperature/current/1",
            "rt":[
               "oic.r.temperature"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.s"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/temperatures/vs/1",
            "rt":[
               "x.com.samsung.da.temperatures"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/airflow/1",
            "rt":[
               "oic.r.airflow"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/airflow/vs/1",
            "rt":[
               "x.com.samsung.da.wind"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/mode/1",
            "rt":[
               "oic.r.mode"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/mode/vs/1",
            "rt":[
               "x.com.samsung.da.mode"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/diagnosis/vs/1",
            "rt":[
               "x.com.samsung.da.diagnosis"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/alarms/vs/1",
            "rt":[
               "x.com.samsung.da.alarms"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/energy/consumption/1",
            "rt":[
               "oic.r.energy.consumption"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/energy/consumption/vs/1",
            "rt":[
               "x.com.samsung.da.energyconsumption"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/configuration/vs/1",
            "rt":[
               "x.com.samsung.da.configuration"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":1,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/file/information/vs/1",
            "rt":[
               "x.com.samsung.file.information"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":1,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/humidity/1",
            "rt":[
               "oic.r.humidity"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/consumable/vs/1",
            "rt":[
               "x.com.samsung.da.consumable"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.s"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/humidity/vs/1",
            "rt":[
               "x.com.samsung.da.humidity"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/actions/vs/1",
            "rt":[
               "x.com.samsung.da.actions"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":1,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/file/transfer/vs/1",
            "rt":[
               "x.com.samsung.file.transfer"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/information/vs/1",
            "rt":[
               "x.com.samsung.da.information"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/hass/state/vs/1",
            "rt":[
               "x.com.samsung.da.hass.state"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/hass/command/vs/1",
            "rt":[
               "x.com.samsung.da.hass.command"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/file/list/vs/1",
            "rt":[
               "x.com.samsung.file.list"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.s"
            ],
            "p":{
               "bm":1,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/file/transfer/chunk/vs/1",
            "rt":[
               "x.com.samsung.file.chunk"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":1,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/rm/state/vs/1",
            "rt":[
               "x.com.samsung.da.rm.state"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/rm/micomdata/vs/1",
            "rt":[
               "x.com.samsung.da.rm.micomdata"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/EasySetupResURI",
            "rt":[
               "oic.r.easysetup",
               "oic.wk.col"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.ll",
               "oic.if.b"
            ],
            "p":{
               "bm":1,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/WiFiConfResURI",
            "rt":[
               "oic.r.wificonf"
            ],
            "if":[
               "oic.if.baseline"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/CoapCloudConfResURI",
            "rt":[
               "oic.r.coapcloudconf"
            ],
            "if":[
               "oic.if.baseline"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/DevConfResURI",
            "rt":[
               "oic.r.devconf"
            ],
            "if":[
               "oic.if.baseline"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         }
      ]
   }
]

And this is the way to send OCF commands to the unit

{
   "commands":[
      {
         "component":"main",
         "capability":"execute",
         "command":"execute",
         "arguments":[
            "airflow/vs/0",
            {
               "x.com.samsung.da.direction":"Left_And_Right"
            }
         ]
      }
   ]
}

Valid options are All / Up_And_Low / Left_And_Right / Fix

You can check here for some samples on how to use OCF: https://openconnectivityfoundation.github.io/devicemodels/docs/resource-enum.html

2 Likes