Examples really benefit from actually working ;-)
This commit is contained in:
parent
83561d8963
commit
d3e4b7524d
1 changed files with 7 additions and 0 deletions
|
@ -121,6 +121,13 @@ PROCESS_THREAD(example_packet_service_process, ev, data)
|
|||
*/
|
||||
SERVICE_REGISTER(example_packet_service);
|
||||
|
||||
/*
|
||||
* Now we'll make sure that the poll handler is executed
|
||||
* initially. We do this by calling process_poll() with this
|
||||
* process as its argument.
|
||||
*/
|
||||
process_poll(&example_packet_service_process);
|
||||
|
||||
/*
|
||||
* And we wait for either the process to exit, or for the service to
|
||||
* be removed (by someone else).
|
||||
|
|
Loading…
Reference in a new issue