'Telemetry data (in array format) gets segragated into multiple individual messages by ThingsBoard's rule engine?

I have a BLE gateway which scans nearby BLE beacons and send the data to ThingsBoard via MQTT every n seconds.

That is, in the payload, it contains an array with data of each BLE beacons.

[{
    id: 1001,
    rssi: -50
}, {
    id: 1002,
    rssi: -60
}]

The problem is that ThingsBoard upon receiving this payload, it does not pass the whole thing to the rule engine's "INPUT", instead it separates the payload into 2 individual elements. That is, it appears that ThingsBoard has received 2 separate messages.

{
    id: 1001,
    rssi: -50
}

and

{
    id: 1002,
    rssi: -60
}

What I expect is that ThingsBoard does not separate the payload into individual elements.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source