Max number of events / requested data types in asset tracker

I adding custom module o asset_tracker_v2. In Main.c using the function static void data_get(void), various data requests are added using the instruction:

app_module_event->data_list[count++] = APP_DATA_MODEM_DYNAMIC; 
When I add request for custom data, build is successful without any warning and error. During run time, when get_data() function is executed, then buffer overflow error appears in LTE log. I commented one of the default data requested and added custom so that total number of data requests remains same, then it works well. 
I concluded that there is some where limit of max data requests through data_list[] in data_get().
1. Is there any such limit ?
2. What is max limit ? 
3. Is it SOC Architecture dependent ?
4. Where had it been defined in asset tracker v2 code ?
  • Hi

    Can you show me your LTE log and this buffer overflow error? How have you added this function to request custom data exactly in your application?

    1. From what I can see, the data only is accounted for  with the count++ increment in data_get() and are set as a list afterwards with app_module_event->count = count;. So I don't think there is a hard limit here.

    Best regards,

    Simon

Related