1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/examples/cord_epsim
2024-10-18 23:52:35 +02:00
..
main.c nanocoap: make coap_request_ctx_t members internal 2022-07-17 14:32:16 +02:00
Makefile treewide: replace gnrc_netdev_default with netdev_default 2021-09-06 15:43:40 +02:00
Makefile.ci examples,tests: update Makefile.ci 2024-02-12 20:40:31 +01:00
README.md cord/doc: Update references to RFC 9176 2024-10-18 23:52:35 +02:00

CoRE Resource Directory: Simple Endpoint Example

This example shows how a node can register with a CoRE resource directory using the simple registration procedure as described in RFC 9176, section 5.1.

When running this example, you must define the RD server's IPv6 address statically, using the RD_ADDR environment variable:

RD_ADDR=\\\"[abc:0815::123]\\\" make all

Per default, this is set to some random global address ([affe::1]) for compile test reasons. So change it!

Additionally, you can change the RD server's port by specifying it like so:

RD_ADDR=\\\"[affe::bee]:12345\\\" make all

The registration lifetime is set for demonstration purposes to a rather short time of 60s in this example. You can easily override that value using the RD_LT variable:

RD_ADDR=\\\"[abc::def]\\\" RD_LT=3600 make all ...