You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an stm32F103CB with 128kB fash and 20kB RAM, I am wondering as to how much of this will be used if I run the mesh master application on this and lets say we have 10 slave nodes connected to this master node. Also will this be possible to connect 100 nodes on this master. Will there be any shortage of RAM and flash?
The text was updated successfully, but these errors were encountered:
The DHCP list kept on master nodes allocates 3 bytes per network mode (excluding the master node). With memory alignment (which depends on platform), this can actually be 4 bytes per node (which is actually observed on Linux). So, the allocated memory for just the DHCP list is $(n - 1) * a$ where $n$ is the number of nodes in a mesh network (max 255) and $a$ is 3 or 4 bytes depending on the platform's memory alignment.
The DHCP list is allocated dynamically though. Upon RF24Mesh::begin(), the library allocates enough memory for 10 (MESH_MEM_ALLOC_SIZE) nodes. Every time the DHCP list has to grow beyond current capacity, memory for 10 more nodes is additionally allocated.
You can reduce the memory footprint on non-master nodes by defining the macro symbol MESH_NOMASTER. This is easily done with platformIO's build_flags = -DMESH_NOMASTER, but in Arduino IDE you have to edit this lib's RF24Mesh_config.h
I have an stm32F103CB with 128kB fash and 20kB RAM, I am wondering as to how much of this will be used if I run the mesh master application on this and lets say we have 10 slave nodes connected to this master node. Also will this be possible to connect 100 nodes on this master. Will there be any shortage of RAM and flash?
The text was updated successfully, but these errors were encountered: