Store multiple arrays in one array

Hey guys I am getting some data in the form of arrays and I need to store the data in another array, to send the data at certain time (say counter == 10) or at time == 1000 ms.
I do not know how many arrays I get.

My use case is that I am getting data arrays every minute for 10 sec, and I need to store the data and send the whole data which will be a single array with unknown length, every 10 minutes.

Kindly suggest what is the best way to do this, I appreciate your suggestions.

Kindly suggest what is the best way to do this

Without knowing what the maximum size of the resulting array is, you can't do that.

If you know the maximum size, then just allocate an array of the maximum size, and store all the data, as it arrives, in that array.

Ok so I set the maximum size of array.

And I am doing this but not getting results.

char devices[200];
char j=0;

main loop(){
for (int i=0;i<30;i++){
devices[j++]=array1*;*

  • }*
    }
    Then I need to send devices via UART, and this "devices" contains other arrays' data that I need to store and later send.
    But this is not giving me anything, and if I changed devices[j++] to devices then I get only first array data.
    Any suggestions will be appreciated.
    Thanks and Regards,

Can you explain if you need to store all the arrays ? What Arduino do you use ?

——
Please correct your post above so that italic goes away.. add code tags around your code:
[code]`` [color=blue]// your code is here[/color] ``[/code].

It should look like this:// your code is here
(Also press ctrl-T (PC) or cmd-T (Mac) in the IDE before copying to indent your code properly)

Workaholic:
Then I need to send devices via UART, and this "devices" contains other arrays' data that I need to store and later send.

Did you try: Serial.write(devices, j); ?