RPC
To send custom SNMP requests via RPC, add an RPC communication config with key-to-OID mappings.
GET request
Section titled “GET request”Send a GET RPC command by specifying method: "GET" and the mapping key:
{ "method": "GET", "params": { "key": "systemInfo" }}ThingsBoard sends a GET request to the OID mapped to systemInfo, parses the response using the configured data type, and routes the result to the next Rule Node:
{ "systemInfo": "SNMP device"}SET request
Section titled “SET request”Send a SET RPC command by specifying method: "SET", the mapping key, and the value to write:
{ "method": "SET", "params": { "key": "lastUpdateTime", "value": "12901200312" }}ThingsBoard sends a SET request to the OID mapped to lastUpdateTime with the provided value as an OCTET STRING.