2014-01-06 10:10:47 +01:00
|
|
|
#ifndef DEMO_H
|
|
|
|
#define DEMO_H
|
|
|
|
|
|
|
|
#define APP_VERSION "1.1"
|
|
|
|
|
|
|
|
#define RADIO_CHANNEL (10)
|
|
|
|
|
|
|
|
#define MONITOR_STACK_SIZE (KERNEL_CONF_STACKSIZE_MAIN)
|
|
|
|
#define RCV_BUFFER_SIZE (32)
|
|
|
|
|
|
|
|
/* RPL shell command handlers */
|
|
|
|
/**
|
|
|
|
* @brief Shell command to initializes RPL and Destiny
|
|
|
|
*/
|
2014-02-24 23:39:23 +01:00
|
|
|
void rpl_udp_init(int argc, char **argv);
|
2014-01-06 10:10:47 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Shell command to set node's ID
|
|
|
|
*/
|
2014-02-24 23:39:23 +01:00
|
|
|
void rpl_udp_set_id(int argc, char **argv);
|
2014-01-06 10:10:47 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Loops through the routing table
|
|
|
|
*/
|
2014-02-24 23:39:23 +01:00
|
|
|
void rpl_udp_loop(int argc, char **argv);
|
2014-01-06 10:10:47 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Shows the routing table
|
|
|
|
*/
|
2014-02-24 23:39:23 +01:00
|
|
|
void rpl_udp_table(int argc, char **argv);
|
2014-01-06 10:10:47 +01:00
|
|
|
|
|
|
|
/**
|
2014-02-11 18:15:43 +01:00
|
|
|
* @brief Shows the dodag
|
2014-01-06 10:10:47 +01:00
|
|
|
*/
|
2014-02-24 23:39:23 +01:00
|
|
|
void rpl_udp_dodag(int argc, char **argv);
|
2014-01-06 10:10:47 +01:00
|
|
|
|
|
|
|
/* UDP shell command handlers */
|
2014-02-24 23:39:23 +01:00
|
|
|
void udp_server(int argc, char **argv);
|
|
|
|
void udp_send(int argc, char **argv);
|
2014-01-06 10:10:47 +01:00
|
|
|
|
|
|
|
/* helper command handlers */
|
2014-02-24 23:39:23 +01:00
|
|
|
void rpl_udp_ip(int argc, char **argv);
|
2014-01-06 10:10:47 +01:00
|
|
|
|
2014-02-24 23:39:23 +01:00
|
|
|
void rpl_udp_ignore(int argc, char **argv);
|
2014-01-06 10:10:47 +01:00
|
|
|
|
|
|
|
/* monitoring thread */
|
2014-03-04 20:20:01 +01:00
|
|
|
void *rpl_udp_monitor(void *arg);
|
2014-01-06 10:10:47 +01:00
|
|
|
|
|
|
|
extern radio_address_t id;
|
|
|
|
extern ipv6_addr_t std_addr;
|
|
|
|
extern char addr_str[IPV6_MAX_ADDR_STR_LEN];
|
|
|
|
#endif /* DEMO_H */
|