Flags and constants - Kvel2D/ecs193-wireless-sensor-network GitHub Wiki

QUEUE_SIZE_MAX - determines max size of queue that holds packets. Make it larger if you think you need it to be, though keep in mind that RAM is not infinite so check that you occupying too much of it.

NUM_SENSORS - determines how many sensors the node will try read from. This should correspond to the maximum amount, ok ay if the real amount is lower for some nodes. This should be the same for all nodes in the network, otherwise you will have incompatibility problems.

NUM_CHILDREN - determines the max amount of children that can be connected to one parent.

PRINT_DEBUG - if set to true, then nodes will print debug information to serial. This is useful for debugging and testing, but for final deployment, this needs to be false for all nodes. If a node is printing to serial but there's nothing reading the serial, then the node will operate incorrectly.

WAIT_FOR_SERIAL - determines whether the node waits for a serial connection to open(serial monitor for example). In normal operation nodes start running immediately. When debugging this is sometimes inconvenient, since you might miss some activity because of the delay between the node starting and you opening the serial monitor. Otherwise, during normal operation this should be set to false.

PACKET_PERIOD - determines how often reading packets are created. In milliseconds.

HEALTH_PACKET_PERIOD - determines how often health packets are created. In milliseconds.

RX_RATE - average sleep time when the mode is in RX(receive mode). In milliseconds.

TX_RATE - average sleep time when the mode is in RX(receive mode). In milliseconds.