MySensors Library & Examples  2.3.2-62-ge298769
Macros
+ Collaboration diagram for Routing and node:

Detailed Description

These options control message routing and node configurations.

Macros

#define MY_RAM_ROUTING_TABLE_FEATURE
 If enabled, the routing table is kept in RAM (if memory allows) and saved in regular intervals. More...
 
#define MY_ROUTING_TABLE_SAVE_INTERVAL_MS   (30*60*1000ul)
 Interval to dump content of routing table to EEPROM.
 
#define MY_REPEATER_FEATURE
 Enables repeater functionality (relays messages from other nodes) More...
 
#define MY_PASSIVE_NODE
 If enabled, the node operates fully autonomously, i.e. messages are sent without ACKing. More...
 
#define MY_NODE_ID   (AUTO)
 Node id defaults to AUTO (tries to fetch id from controller).
 
#define MY_PARENT_NODE_ID   (AUTO)
 Node parent defaults to AUTO (tries to find a parent automatically).
 
#define MY_PARENT_NODE_IS_STATIC
 Define MY_PARENT_NODE_IS_STATIC to disable fall back if parent node fails.
 
#define MY_TRANSPORT_SANITY_CHECK
 If defined, will cause node to check transport in regular intervals to detect HW issues and re-initialize in case of failure. More...
 
#define MY_TRANSPORT_SANITY_CHECK_INTERVAL_MS   (15*60*1000ul)
 Interval (in ms) for transport sanity checks.
 
#define MY_TRANSPORT_DISCOVERY_INTERVAL_MS   (20*60*1000ul)
 This is a gateway-only feature: Interval (in ms) to issue network discovery checks.
 
#define MY_TRANSPORT_UPLINK_CHECK_DISABLED
 If defined, disables uplink check to GW during transport initialisation.
 
#define MY_TRANSPORT_WAIT_READY_MS   (0)
 Timeout in ms until transport is ready during startup, set to 0 for no timeout.
 
#define MY_SIGNAL_REPORT_ENABLED
 Enables signal report functionality. More...
 

Macro Definition Documentation

◆ MY_PASSIVE_NODE

#define MY_PASSIVE_NODE

If enabled, the node operates fully autonomously, i.e. messages are sent without ACKing.

Note
All transport-related checks and safety-mechanisms are disabled.
Requires that MY_NODE_ID is set, MY_PARENT_NODE_ID and MY_PARENT_NODE_IS_STATIC are optional.
Singing, registration, and OTA FW update are disabled.

Definition at line 2655 of file MyConfig.h.

◆ MY_RAM_ROUTING_TABLE_FEATURE

#define MY_RAM_ROUTING_TABLE_FEATURE

If enabled, the routing table is kept in RAM (if memory allows) and saved in regular intervals.

Note
Enabled by default on most platforms, but on AVR only for atmega1280, atmega1284 and atmega2560.
See also
MY_DISABLE_RAM_ROUTING_TABLE_FEATURE

Definition at line 1314 of file MyConfig.h.

◆ MY_REPEATER_FEATURE

#define MY_REPEATER_FEATURE

Enables repeater functionality (relays messages from other nodes)

Note
Repeaters need to be constantly kept awake to be useful. They are therefore not suitable for battery powered operation.

Definition at line 2654 of file MyConfig.h.

◆ MY_SIGNAL_REPORT_ENABLED

#define MY_SIGNAL_REPORT_ENABLED

Enables signal report functionality.

Note
This feature adds ~1kB code to the sketch.

Definition at line 2668 of file MyConfig.h.

◆ MY_TRANSPORT_SANITY_CHECK

#define MY_TRANSPORT_SANITY_CHECK

If defined, will cause node to check transport in regular intervals to detect HW issues and re-initialize in case of failure.

Note
This feature is enabled for all repeater nodes (incl. GW)

Definition at line 2652 of file MyConfig.h.