Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions task-07/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ Note: `num` must be in powers of 2.

* You can register for packets of a certain type and context (port 8888 in our
case) using `gnrc_netreg_register()` from [`net/gnrc/netreg.h`](https://doc.riot-os.org/group__net__gnrc__netreg.html):
* The current thread can be obtained with the `sched_active_pid` variable from
`sched.h`
* The current thread can be obtained with the `thread_getpid()` function from
`thread.h`

```C
gnrc_netreg_entry_t server = GNRC_NETREG_ENTRY_INIT_PID(8888, sched_active_pid);
gnrc_netreg_entry_t server = GNRC_NETREG_ENTRY_INIT_PID(8888, thread_getpid());
gnrc_netreg_register(GNRC_NETTYPE_UDP, &server);
```

Expand Down