1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/examples/cord_epsim
2020-07-10 16:49:08 +02:00
..
main.c examples: make use of ARRAY_SIZE macro 2019-08-06 19:43:54 +02:00
Makefile examples: tests: make use of DEVELHELP consistent 2019-11-06 16:31:53 +01:00
Makefile.ci examples: test: remove remaining occurences of wsn430 2020-07-10 16:49:08 +02:00
README.md examples/cord_epsim: run registration loop locally 2019-03-27 18:26:37 +01: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 draft-ietf-core-resource-directory-15, section 5.3.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 overriding the RD_PORT variable:

RD_ADDR=\\\"affe::bee\\\" RD_PORT=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 ...