Make PERIOD and SERVER_REPLY configurable

This commit is contained in:
maniacbug 2011-08-09 01:02:16 -04:00 committed by David Kopf
parent 912ea85199
commit 1c53807727
3 changed files with 13 additions and 1 deletions

View file

@ -46,8 +46,12 @@
#define DEBUG DEBUG_PRINT
#include "net/uip-debug.h"
#ifndef PERIOD
#define PERIOD 60
#endif
#define START_INTERVAL (15 * CLOCK_SECOND)
#define SEND_INTERVAL (60 * CLOCK_SECOND)
#define SEND_INTERVAL (PERIOD * CLOCK_SECOND)
#define SEND_TIME (random_rand() % (SEND_INTERVAL))
#define MAX_PAYLOAD_LEN 30