Examples really benefit from actually working ;-)
This commit is contained in:
parent
83561d8963
commit
d3e4b7524d
@ -121,6 +121,13 @@ PROCESS_THREAD(example_packet_service_process, ev, data)
|
|||||||
*/
|
*/
|
||||||
SERVICE_REGISTER(example_packet_service);
|
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
|
* And we wait for either the process to exit, or for the service to
|
||||||
* be removed (by someone else).
|
* be removed (by someone else).
|
||||||
|
Loading…
Reference in New Issue
Block a user