memory usage vs mesh size

Mr_Red
Posts: 23
Joined: Mon Sep 11, 2017 12:41 pm

memory usage vs mesh size

Postby Mr_Red » Tue Mar 10, 2020 6:29 pm

I'm trying to figure out the maximum number of devices that my nodes can support vs the RAM remaining. Changing the mesh max number of devices, number of layers or number of child per node does not have a big impact when no children are connected.

Is there information about how much memory is required/allocated vs the number of child connected? I want to avoid a situation where the heap is full and I have no more memory for actual communication.

I'm using a fixed root that has more resources than the nodes, could I set the maximum number of devices on the root higher than on the nodes or does it have to be the same value for all?

Mr_Red
Posts: 23
Joined: Mon Sep 11, 2017 12:41 pm

Re: memory usage vs mesh size

Postby Mr_Red » Fri Mar 13, 2020 3:12 pm

I did a little test with low numbers used to set maximum capacity (esp_mesh_set_capacity_num()) and I can join more devices in the mesh than the number I set.
If I set my mesh to have max 2 devices, 2 AP connections and 3 layers, I can join 4 devices + the root (total of 5).

What is esp_mesh_set_capacity_num() even doing?

Who is online

Users browsing this forum: No registered users and 3 guests