You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* To be able to receive packets, a [message queue](http://api.riot-os.org/group__net__gnrc.html) must be
26
+
created using [msg_init_queue](https://api.riot-os.org/group__core__msg.html#ga480e6f32c8ab18579b62a890f3fda2cd):
27
27
28
28
```C
29
29
msg_t msg_queue[num];
@@ -33,7 +33,7 @@ msg_init_queue(msg_queue, num);
33
33
Note: `num` must be in powers of 2.
34
34
35
35
* You can register for packets of a certain type and context (port 8888 in our
36
-
case) using `gnrc_netreg_register()` from [`net/gnrc/netreg.h`](https://doc.riot-os.org/group__net__gnrc__netreg.html):
36
+
case) using `gnrc_netreg_register()` from [`net/gnrc/netreg.h`](https://api.riot-os.org/group__net__gnrc__netreg.html):
37
37
* The current thread can be obtained with the `thread_getpid()` function from
38
38
`thread.h`
39
39
@@ -42,7 +42,7 @@ gnrc_netreg_entry_t server = GNRC_NETREG_ENTRY_INIT_PID(8888, thread_getpid());
42
42
gnrc_netreg_register(GNRC_NETTYPE_UDP, &server);
43
43
```
44
44
45
-
* Packets can be received using the IPC receive function [msg_receive()](https://doc.riot-os.org/group__core__msg.html#gae3e05f08bd71d6f65dc727624c4d5f7a):
45
+
* Packets can be received using the IPC receive function [msg_receive()](https://api.riot-os.org/group__core__msg.html#gae3e05f08bd71d6f65dc727624c4d5f7a):
46
46
47
47
```C
48
48
msg_t msg;
@@ -66,14 +66,14 @@ gnrc_pktbuf_release(pkt);
66
66
2. Use `netcat` on your host to test your application on native node.
67
67
68
68
## Task 7.3: Send your neighbor some messages again
69
-
* Go to the [`gnrc_networking` application](https://github.com/RIOT-OS/RIOT/tree/master/examples/gnrc_networking)
69
+
* Go to the [`gnrc_networking` application](https://github.com/RIOT-OS/RIOT/tree/master/examples/networking/gnrc/networking)
70
70
* Have a look in `udp.c` how packets are constructed and send
71
71
* Compile, flash, and run on the board `BOARD=samr21-xpro make all flash term`
72
72
* Type `help`
73
-
* Start UDP server on port 8888 using `udp server 8888`
73
+
* Start UDP server on port 8888 using `udp server start 8888`
74
74
* Get your IPv6 address using `ifconfig`
75
75
* Send your neighbor some messages using `udp send`
76
76
77
-
[Read the Doc](https://doc.riot-os.org/group__net__gnrc.html)
77
+
[Read the Doc](https://api.riot-os.org/group__net__gnrc.html)
Copy file name to clipboardExpand all lines: task-09/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
This task will demonstrate basic routing functionalities in RIOT provided by the [RPL](https://tools.ietf.org/html/rfc6550) (IPv6 Routing Protocol for Low-Power and Lossy Networks) routing protocol and multihop communication.
6
6
7
-
It uses an adapted version of the default [`gnrc_networking`](https://github.com/RIOT-OS/RIOT/tree/master/examples/gnrc_networking) example in the RIOT repository.
7
+
It uses an adapted version of the default [`gnrc_networking`](https://github.com/RIOT-OS/RIOT/tree/master/examples/networking/gnrc/networking) example in the RIOT repository.
0 commit comments