Make PERIOD and SERVER_REPLY configurable
This commit is contained in:
parent
912ea85199
commit
1c53807727
3 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue