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.
| WoT Field | OPC UA Method Mapping |
| uav:BrowseName | BrowseName |
| Title | DisplayName |
| uav:ComponentOf | ComponentOf Reference Target NodeId |
| Input.Title | InputArguments.Description |
| Input.Properties | InputArguments.Value |
| Output.Title | OutputArguments.Description |
| Output.Properties | OutputArguments.Value |
| Forms.Href | NodeId |
"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 }