Task 2 – Creating the data converter and integrating it with ThingsBoard
In addition to receiving published messages from AWS IoT Core, ThingsBoard needs to execute data decoder function to parse the payload of the incoming message and transform it to the format that ThingsBoard uses.
The data converter process in ThingsBoard Cloud involves decoder function creation. ThingsBoard adopts ThingsBoard Expression Language (TBEL) (https://thingsboard.io/docs/pe/user-guide/tbel/) to create a decoder function to facilitate data processing and manipulation. TBEL allows you to write expressions that can parse, transform, and process device data as it is ingested into ThingsBoard.
In the context of a decoder function, TBEL is utilized to interpret incoming JSON, text, or binary (Base64) format data from devices, typically sent over IoT protocols such as MQTT or CoAP. The decoder function then extracts values from the raw device data, transforms them if necessary, and formats them...