Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In order to make the creation and management of devices within Thingsboard consistent, they created the platform assuming that all data that is used in their platform is formatted the same way. To make this possible they created something they call "Data convertes" that processes incoming data and formats the data accordingly. The converter expects a timestamp as well as a device name, any other expected fields must be defined within the data converter. The data converter is used within an integration, the device name links the upload through the integration to a device.


Creating and configuring a data converter

To create a data converter navigate to the data converter section within Thingsboard. Press Image Added on the left hand side followed by Image Added in the bottom right corner. A new window in Thingsboard should now have opened for you, such as shown below.

Image Added

Here we gave the converter the name "wind-buoy-converter". The type denotes if the converter should be used for data coming in or leaving Thingsboard. Where "Uplink" means the data should be coming in. The decoder function must be created to properly format the data. It is easier to just show how this can be done, rather than explain it. The following snippet