1{
2  "server": {
3    "name": "OPC-UA Default Server",
4    "url": "localhost:4840/freeopcua/server/",
5    "timeoutInMillis": 5000,
6    "scanPeriodInMillis": 5000,
7    "disableSubscriptions":false,
8    "subCheckPeriodInMillis": 100,
9    "showMap": false,
10    "security": "Basic128Rsa15",
11    "identity": {
12      "type": "anonymous"
13    },
14    "mapping": [
15      {
16        "deviceNodePattern": "Root\\.Objects\\.Device1",
17        "deviceNamePattern": "Device ${Root\\.Objects\\.Device1\\.serialNumber}",
18        "attributes": [
19          {
20            "key": "temperature °C",
21            "path": "${ns=2;i=5}"
22          }
23        ],
24        "timeseries": [
25          {
26            "key": "humidity",
27            "path": "${Root\\.Objects\\.Device1\\.TemperatureAndHumiditySensor\\.Humidity}"
28          },
29          {
30            "key": "batteryLevel",
31            "path": "${Battery\\.batteryLevel}"
32          }
33        ],
34        "rpc_methods": [
35          {
36            "method": "multiply",
37            "arguments": [2, 4]
38          }
39        ],
40        "attributes_updates": [
41          {
42            "attributeOnThingsBoard": "deviceName",
43            "attributeOnDevice": "Root\\.Objects\\.Device1\\.serialNumber"
44          }
45        ]
46      }
47    ]
48  }
49}