RF24Mesh - Automated Networking for nrf24L01 radios v2.0.0
TMRh20 2020 - A user friendly mesh overlay for sensor neworks using RF24Network
|
#include <RF24_config.h>
Go to the source code of this file.
Macros | |
#define | MESH_MAX_CHILDREN 4 |
Set 1 to 4 (Default: 4) Restricts the maximum children per node. | |
#define | MESH_DEFAULT_CHANNEL 97 |
Radio channel to operate on 1-127. | |
#define | MESH_RENEWAL_TIMEOUT 7500 |
How long to attempt address renewal in milliseconds. | |
#define | MESH_MEM_ALLOC_SIZE 10 |
master node memory allocation | |
#define | MESH_LOOKUP_TIMEOUT 135 |
How long to wait in ms for a response during individual address lookups. | |
#define | MESH_WRITE_TIMEOUT 115 |
How long RF24Mesh::write() retries address lookups before timing out. Allows multiple attempts. | |
#define | MESH_DEFAULT_ADDRESS NETWORK_DEFAULT_ADDRESS |
#define | MESH_MULTICAST_ADDRESS NETWORK_MULTICAST_ADDRESS |
#define | IF_MESH_DEBUG_MINIMAL(x) |
#define | IF_MESH_DEBUG(x) |
macro definitions for configuring RF24Mesh
Definition in file RF24Mesh_config.h.
#define 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
Definition at line 17 of file RF24Mesh_config.h.
#define MESH_DEFAULT_CHANNEL 97 |
Radio channel to operate on 1-127.
This is normally modified by calling RF24Mesh::setChannel()
Definition at line 33 of file RF24Mesh_config.h.
#define MESH_RENEWAL_TIMEOUT 7500 |
How long to attempt address renewal in milliseconds.
Definition at line 41 of file RF24Mesh_config.h.
#define 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.
Definition at line 54 of file RF24Mesh_config.h.
#define MESH_LOOKUP_TIMEOUT 135 |
How long to wait in ms for a response during individual address lookups.
Definition at line 74 of file RF24Mesh_config.h.
#define MESH_WRITE_TIMEOUT 115 |
How long RF24Mesh::write() retries address lookups before timing out. Allows multiple attempts.
Definition at line 79 of file RF24Mesh_config.h.
#define MESH_DEFAULT_ADDRESS NETWORK_DEFAULT_ADDRESS |
Definition at line 83 of file RF24Mesh_config.h.
#define MESH_MULTICAST_ADDRESS NETWORK_MULTICAST_ADDRESS |
Definition at line 86 of file RF24Mesh_config.h.
#define IF_MESH_DEBUG_MINIMAL | ( | x | ) |
Definition at line 104 of file RF24Mesh_config.h.
#define IF_MESH_DEBUG | ( | x | ) |
Definition at line 110 of file RF24Mesh_config.h.