mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
364905f0d6
* updated project by adding routing functionality
18 lines
322 B
C
18 lines
322 B
C
#ifndef WEATHER_ROUTING_H
|
|
#define WEATHER_ROUTING_H
|
|
|
|
#include <time.h>
|
|
|
|
#define FLOODING_PROB (100)
|
|
#define MAX_SOURCES (10)
|
|
#define MAX_INTERVAL (5 * 60)
|
|
|
|
typedef struct {
|
|
uint8_t id;
|
|
time_t timestamp;
|
|
} source_timestamp_t;
|
|
|
|
void route_packet(void* msg, int msg_size);
|
|
|
|
#endif /* WEATHER_ROUTING_H */
|