Skip to content
Stand with Ukraine flag

Built-in GET/SET RPC Methods

Built-in GET/SET RPC methods let you read and write telemetry and attribute values on connected devices without any additional connector configuration. The method name and parameter string are sent as the RPC payload from the ThingsBoard RPC debug terminal on the gateway dashboard.

The following connectors support built-in GET/SET RPC methods:

Every telemetry and attribute parameter has GET and SET methods automatically, based on the path defined in the connector configuration.

For example, given a timeseries entry:

{
"timeseries": [
{
"key": "temperature",
"path": "${ns=3;i=1001}"
}
]
}

Read the current value of a node by its OPC-UA node ID:

Terminal window
get ns=3;i=1001;

Response:

{"result": 25.34}

Write a numeric value to a node:

Terminal window
set ns=3;i=1001; 23

Write a string value to an attribute node (e.g. set model to T3000):

Terminal window
set ns=3;i=1008; T3000;

Response:

{"success": "true", "code": 200}