6.3.9 WoT Actions Mapping

WoT Actions are represented as Method Node which is component of an Object that implements IWoTAssetType (see 6.3.8). The Method and its InputArguments and OutputArguments Properties are mapped to a TD as shown in Table 15.

Table 15 – WoT OPC UA Method Mapping
WoT Field OPC UA Method Mapping
uav:BrowseNameBrowseName
TitleDisplayName
uav:ComponentOfComponentOf Reference Target NodeId
Input.TitleInputArguments.Description
Input.PropertiesInputArguments.Value
Output.TitleOutputArguments.Description
Output.PropertiesOutputArguments.Value
Forms.HrefNodeId
"actions": {
  "setTemperature": {
    "title": "Set Temperature",
    "description": "Sets the desired temperature",
    "input": {
      "type": "object",
	"title": "SetTemperature",
      "properties": {
        "target": {
          "type": "number",
          "minimum": 10,
          "maximum": 30,
          "unit": "degree Celsius"
        }
      }
    }
    "forms": [
      {
        "href": "https://example.com/things/thermostat/actions/setTemperature",
        "contentType": "application/json",
        "htv:methodName": "POST"
      }
    ]
  }
}

{ "target": 22.5 }