Open bayou9 opened 7 years ago
Yes, but keep it at least at its current size, or you'll get NO_MEMs on allocation. Manipulating the 3 is the best way of doing this :)
The mesh packets will be freed as they disappear from the data cache (in a "least recently used" order). There's no way of explicitly deleting a packet from the cache. See #103.
When testing mesh nodes, I ran into a problem, app_error_looped, if you will, and the function that caused the program to enter app error loop is mesh_packet_acquire, code as follows:
And it was APP_ERROR_CHECK(NRF_ERROR_NO_MEM); that invoked the error loop.
Apparently, I ran out of mesh packets, or, in other words, exceeded the limit of RBC_MESH_PACKET_POOL_SIZE.
Now I have 2 questions:
Can I arbitrarily modify RBC_MESH_PACKET_POOL_SIZE? For example, since its macro definition is:
define RBC_MESH_PACKET_POOL_SIZE (RBC_MESH_DATA_CACHE_ENTRIES +\
I'll simply put a "30" or "60" if I want instead of "3" at the end?
Please help, Many thanks!