Help with thingsboard max data transmission

Hi all,

I tried posting for help in Thingsboard github but no reply after a month :sweat_smile:

Thus, I hope can get help here. I begin:

Prior to void setup(); I've set to ThingsBoardSized<128> tb(espClient);

I'm using latest ThingsBoard library version with esp32.

However the max items that I can send is only 6 as per below:

    const int data_items = 6;


    Telemetry data[data_items] = {
      { "Target", target_m },
      { "Distance", distance_m },
      {"Plantime", plan_mins},
      {"NSpeed", machspeed},
      {"ASpeed", current_mtrpermins},
      {"Downtime", downtime_mins},
    };

    tb.sendTelemetry(data, data_items);

If I want to successfully send 15 items, I'll have to split into 3 sections as the code below:

const int data_items2 = 5;
    const int data_items3 = 4;
    const int data_items = 6;


    Telemetry data[data_items] = {
      { "Target", target_m },
      { "Distance", distance_m },
      {"Plantime", plan_mins},
      {"NSpeed", machspeed},
      {"ASpeed", current_mtrpermins},
      {"Downtime", downtime_mins},
    };

    tb.sendTelemetry(data, data_items);


    Telemetry data2[data_items2] = {
      { "Down1", Dtime1 },
      { "Down2", Dtime2 },
      {"Down3", Dtime3},
      {"Down4", Dtime4},
      {"Down5", Dtime5},
    };

    tb.sendTelemetry(data2, data_items2);

    Telemetry data3[data_items3] = {
      { "Down6", Dtime6 },
      { "Down7", Dtime7 },
      {"Down8", Dtime8},
      {"Down9", Dtime9},
    };

    tb.sendTelemetry(data3, data_items3);

The above code works to send all 15 but when I want to push to Telegram, it won't stitch as one message but separated in to 3 messages.

I would like to know if I can have 15 data send one go from my ESP32.

I've also tried ThingsBoardSized<128,32> tb(espClient); but no difference seen.

Do hope there is a workaround for this.

Best regards.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.