Callback - tělo

We added the callback functionality. For the data received from each node, it is now possible to set the PUT, POST, GET methods and automatically route the data to your web server. There is a history of callbacks available, including the information whether they were successful or not. Integration with your own application is now easier than before. You can define the callback body using system and user variables – these depend on the parsing table for incoming data. Possible variables usable when editing the callback body can be found in the list of available shortcuts.
How to create a callback
In the detail of the node on the Callback tab, press the Nový callback button.
Choose a name by personal choice.
Enter the URL by following the pattern http://159.69.158.216:9090/api/v1/AcessToken/telemetry. The bold text can be gotten in the ThingsBoard, visualization environment, where we will set up a new device in DEVICES Then, tap to enter the device settings and press the COPY ACCESS TOKEN button to save the mentioned code to the clipboard, the code needs be inserted into the edited URL.
Under Metoda GET , we choose POST.
Type application/json into the Content type entry.
Now we have to fill in the Těloto specify which data we want to send. A section (similarly to a program code in C language) will be given and completed with compound brackets (the content is inserted into compound parentheses). Individual items (body lines) have the form:
Item_Name“: “{variable}
Choose the item name according to personal choice. Select a variable from the list.
Example: “Elektromer_1”: “{userData#s0_kanal_1}”
Separate the items at the end of a line with a comma.

Callback - tělo

To save the callback, press the Přidat callback button. If the callback is edited, then save it with the Upravit callback button.

In the callback history the list of sent messages with information about whether the transfer went correctly can be looked at.

Callback edit

Callback edit

ThingsBoard visualization environment

ThingsBoard visualization environment

ThingsBoard (with charts)

ThingsBoard (with charts)