RF24Mesh - Automated Networking for nrf24L01 & nrf52x radios
v2.0.0
2024 - A user friendly mesh overlay for sensor neworks using RF24Network
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
Loading...
Searching...
No Matches
RF24Mesh_config.h
Go to the documentation of this file.
1
7
#ifndef __RF24MESH_CONFIG_H__
8
#define __RF24MESH_CONFIG_H__
9
10
/*** User Configuration ***/
16
#ifndef MESH_MAX_CHILDREN
17
#define MESH_MAX_CHILDREN 4
18
#endif
// MESH_MAX_CHILDREN
19
#if defined(RF24_TINY)
20
#define MESH_NOMASTER
21
#endif
22
23
// un-comment for non-master nodes not running on ATTiny MCUs
24
//#define MESH_NOMASTER
25
26
/***Advanced User Config***/
32
#ifndef MESH_DEFAULT_CHANNEL
33
#define MESH_DEFAULT_CHANNEL 97
34
#endif
// MESH_DEFAULT_CHANNEL
35
40
#ifndef MESH_RENEWAL_TIMEOUT
41
#define MESH_RENEWAL_TIMEOUT 7500
42
#endif
// MESH_RENEWAL_TIMEOUT
43
53
#ifndef MESH_MEM_ALLOC_SIZE
54
#define MESH_MEM_ALLOC_SIZE 10
55
#endif
// MESH_MEM_ALLOC_SIZE
56
57
/**************************/
58
/*** Debug ***/
59
//#define MESH_DEBUG_MINIMAL /** Uncomment for the Master Node to print out address assignments as they are assigned */
60
//#define MESH_DEBUG /** Uncomment to enable debug output to serial **/
61
/**************************/
62
63
/*** Other Configuration ***/
64
//#define MESH_MIN_SAVE_TIME 30000 /** UNUSED Minimum time required before changing nodeID. Prevents excessive writing to EEPROM */
65
73
#ifndef MESH_LOOKUP_TIMEOUT
74
#define MESH_LOOKUP_TIMEOUT 135
75
#endif
// MESH_LOOKUP_TIMEOUT
76
78
#ifndef MESH_WRITE_TIMEOUT
79
#define MESH_WRITE_TIMEOUT 115
80
#endif
// MESH_WRITE_TIMEOUT
81
82
#ifndef MESH_DEFAULT_ADDRESS
83
#define MESH_DEFAULT_ADDRESS NETWORK_DEFAULT_ADDRESS
84
#endif
// MESH_DEFAULT_ADDRESS
85
86
#define MESH_MULTICAST_ADDRESS NETWORK_MULTICAST_ADDRESS
87
88
//#define MESH_MAX_ADDRESSES 255 /* UNUSED Determines the max size of the array used for storing addresses on the Master Node */
89
//#define MESH_ADDRESS_HOLD_TIME 30000 /* UNUSED How long before a released address becomes available */
90
91
#if (defined(__linux) || defined(linux)) && !defined(__ARDUINO_X86__) && !defined(USE_RF24_LIB_SRC)
92
#include <RF24/RF24_config.h>
93
94
//ATXMega
95
#elif defined(XMEGA)
96
#include "../../rf24lib/rf24lib/RF24_config.h"
97
#else
98
#include <RF24_config.h>
99
#endif
100
101
#if defined(MESH_DEBUG_MINIMAL)
102
#define IF_MESH_DEBUG_MINIMAL(x) ({ x; })
103
#else
104
#define IF_MESH_DEBUG_MINIMAL(x)
105
#endif
106
107
#if defined(MESH_DEBUG)
108
#define IF_MESH_DEBUG(x) ({ x; })
109
#else
110
#define IF_MESH_DEBUG(x)
111
#endif
112
113
#endif
// __RF24MESH_CONFIG_H__
Generated on Sat Apr 6 2024 for RF24Mesh - Automated Networking for nrf24L01 & nrf52x radios by
1.10.0