1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/examples/cord_epsim
Francisco Acosta dd3ca90e8a examples, tests: add memory insufficient arduino boards
The unification of a bigger stack for the atmega platforms
makes some boards to not have enough memory to provide
the big stack plus the application code.

It is possible though, to override the stack size to a
smaller amount if running the test is necessary.
2018-11-02 17:57:13 +01:00
..
main.c examples/rdcli_simple: rename to cord_epsim 2018-10-17 15:21:49 +02:00
Makefile examples, tests: add memory insufficient arduino boards 2018-11-02 17:57:13 +01:00
README.md examples/rdcli_simple: rename to cord_epsim 2018-10-17 15:21:49 +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 draft-ietf-core-resource-directory-15, section 5.3.1.

The registration process needs an endpoint name as well as a lifetime for the registry entry. These are statically defined during compile time and you can edit these values by overriding CORD_EP and CORD_LT:

CFLAGS="-DCORD_LT=\"7200\" -DCORD_EP=\"MyNode\"" make all

Per default, the node is looking for the CoRE RD at the all nodes link-local multicast address [FF02::1]:5683. To change the target address or port, simply override the RD_ADDR and RD_PORT variables, e.g.:

RD_ADDR=\\\"::1\\\" RD_PORT=12345 make all

or

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