RPC

Using RPC capabilities

See Using RPC capabilities.

Thinsboard RPC feature can be divided into two types based on originator: device-originated and server-originated RPC calls. In order to use more familiar names, we will name device-originated RPC calls as a client-side RPC calls and server-originated RPC calls as server-side RPC calls.

Client-side RPC

../_images/f6c1cab2136504ab9f579dd0285989b2d92feb4a16c0f589f95e2243a0e10a0a.svg

Server-side RPC

Server-side RPC calls can be divided into one-way and two-way:

  • One-way server-side RPC request is sent to the device without delivery confirmation and obviously, does not provide any response from the device. RPC call may fail only if there is no active connection with the target device within a configurable timeout period.

    ../_images/cb0452fe943458769fa58056e667aba0daa48c023328511b42324d9d07da0fad.svg
  • Two-way server-side RPC request is sent to the device and expects to receive a response from the device within the certain timeout. The Server-side request is blocked until the target device replies to the request.

    ../_images/1998ca311f6142613e531914cd22b472dfeed3f74e0ca62d6bc3f8eb361005ef.svg