RF24Mesh_config.h

macro definitions for configuring RF24Mesh

Defines

MESH_MAX_CHILDREN 4

Set 1 to 4 (Default: 4) Restricts the maximum children per node.

The master node supports MESH_MAX_CHILDREN + 1 nodes

MESH_DEFAULT_CHANNEL 97

Radio channel to operate on 1-127.

This is normally modified by calling RF24Mesh::setChannel()

MESH_RENEWAL_TIMEOUT 7500

How long to attempt address renewal in milliseconds.

MESH_MEM_ALLOC_SIZE 10

master node memory allocation

On the master node memory for the address list (nodeIDs + RF24Network Addresses) is allocated dynamically and re-allocated using this value

Example: With a value of 10, space for 10 nodes is allocated on startup. Adding an 11th node will re-allocate the memory space to support 10 more nodes.

On 8-bit AVRs (Arduino Uno, Nano etc) each entry uses 3-bytes of memory space. Minimize this value to save memory. Allocate enough to prevent memory fragmentation.

MESH_LOOKUP_TIMEOUT 135

How long to wait in ms for a response during individual address lookups.

See also

RF24Mesh::getNodeID and RF24Mesh::getAddress If using distant nodes or a large number of nodes this value can be increased in general or for specific nodes. For Level 1 nodes a response typically takes 2-3ms in good conditions. For Level 2 nodes: 4-5ms, Level 3: 6-15ms, Level 4: 10-25ms

MESH_WRITE_TIMEOUT 115

How long RF24Mesh::write() retries address lookups before timing out. Allows multiple attempts.

MESH_DEFAULT_ADDRESS NETWORK_DEFAULT_ADDRESS
MESH_MULTICAST_ADDRESS NETWORK_MULTICAST_ADDRESS
IF_MESH_DEBUG_MINIMAL(x)
IF_MESH_DEBUG(x)