34 #include "dev/button-sensor.h"
42 #define COOJA_PORT 1234
44 PROCESS(test_uaodv_process,
"uIP uAODV test process");
45 AUTOSTART_PROCESSES(&uaodv_process, &test_uaodv_process);
56 printf(
"uIP uAODV test process started\n");
65 button_sensor.configure(SENSORS_ACTIVE, 1);
70 if(ev == sensors_event && data == &button_sensor) {
71 struct uaodv_rt_entry *route;
74 route = uaodv_rt_lookup_any(&addr);
75 if (route ==
NULL || route->is_bad) {
77 uaodv_request_route_to(&addr);
88 printf(
"data received from %d.%d.%d.%d: %s\n",
91 leds_toggle(LEDS_ALL);