Please note that this guide is for ThingsBoard versions prior v2.0.
Old rules and plugins functionality is replaced by new rule engine components (rule chains and rule nodes).
Please review new rule engine documentation to learn how to adopt new functionality.
We are doing our best to modify this guide to v2.0 components. Contributions are welcome.
Overview
This RPC plugin enables communication between various IoT devices through the ThingsBoard cluster.
The plugin introduces basic security features: devices are able to exchange messages only if they belong to the same customer.
The plugin implementation can be customized to cover more complex security features.
Configuration
You can specify following configuration parameters:
Maximum amount of devices per customer
Default request timeout
Maximum request timeout
Device RPC API
The plugin handles two rpc methods: getDevices and sendMsg.
The examples listed below will be based on demo account and MQTT protocol.
Please note that you are able to use other protocols -
CoAP and HTTP.
Get Device List API
In order to send a message to other devices, you will need to know their identifiers.
A device can request a list of other devices that belong to the same customer using getDevices RPC call.