diff --git a/tools/cooja/examples/userplatform_uaodv/cooja.config b/tools/cooja/examples/userplatform_uaodv/cooja.config index 21435db17..425d77556 100644 --- a/tools/cooja/examples/userplatform_uaodv/cooja.config +++ b/tools/cooja/examples/userplatform_uaodv/cooja.config @@ -1,3 +1,5 @@ se.sics.cooja.GUI.PLUGINS = + VisUAODV UAODVControl -se.sics.cooja.contikimote.ContikiMoteType.C_SOURCES = + uaodv-example.c +## Not needed since update 2006-08-21. +## Processfiles are thrown to compilation explicitly. +#se.sics.cooja.contikimote.ContikiMoteType.C_SOURCES = + uaodv-example.c diff --git a/tools/cooja/examples/userplatform_uaodv/uaodv-example.c b/tools/cooja/examples/userplatform_uaodv/uaodv-example.c index 499af4dfb..5edb2abe7 100644 --- a/tools/cooja/examples/userplatform_uaodv/uaodv-example.c +++ b/tools/cooja/examples/userplatform_uaodv/uaodv-example.c @@ -26,9 +26,10 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: uaodv-example.c,v 1.1 2006/08/21 12:13:12 fros4943 Exp $ + * $Id: uaodv-example.c,v 1.2 2006/08/21 15:32:29 fros4943 Exp $ */ +#include #include "contiki-net.h" #include "net/uaodv.h" #include "net/uaodv-rt.h" @@ -60,9 +61,9 @@ PROCESS_THREAD(uaodv_example_process, ev, data) while(1) { PROCESS_WAIT_EVENT(); if(ev == sensors_event && data == &button_sensor && button_sensor.value(0)) { - uip_ipaddr(addr, 10,10,0,1); + uip_ipaddr(&addr, 10,10,0,1); log_message("Sending RREQ to (static) 10.10.0.1\n", ""); - uaodv_request_route_to(addr); + uaodv_request_route_to(&addr); } else if(ev == serial_event_message) { sscanf(data, "SENDTO>%d.%d.%d.%d", &ipA, &ipB, &ipC, &ipD); sprintf(buf, "Sending RREQ to %d.%d.%d.%d .. \n", ipA, ipB, ipC, ipD);