How to send a packet with Contiki using uip? -
i'm looking way send packets contiki using uip interface. give idea of current state, feel blind man bangs against walls. below code shows do. if share hint grateful.
process(allo_process, "allo process"); autostart_processes(&allo_process); process_thread(allo_process, ev, data) { process_begin(); sensors_activate(button_sensor); (;;) { process_wait_event(); if (ev == sensors_event && data == &button_sensor) { uip_send("allo", 4); } } process_end(); }
edit
i managed send packets rime interface using example: contikidoc. people care, don't forget add line makefile: contiki_with_rime = 1
. packets printed "radio messages" panel.
however, original question remains open: how use uip interface? tried reproduce first example in doc part of code missing :-/
Comments
Post a Comment