2018-10-15 11:46:38 +02:00
|
|
|
CoRE Resource Directory: Endpoint Example
|
|
|
|
=========================================
|
|
|
|
|
|
|
|
This example application demonstrates the usage of RIOT's Resource Directory
|
|
|
|
(RD) endpoint module, called `cord_ep`. This module supports the registration,
|
|
|
|
update, and removal procedures as defined in
|
2024-10-18 14:56:20 +02:00
|
|
|
[RFC 9176](https://datatracker.ietf.org/doc/html/rfc9176).
|
2018-10-15 11:46:38 +02:00
|
|
|
|
|
|
|
Usage
|
|
|
|
=====
|
|
|
|
The examples includes a shell command that you can use to interact with a given
|
|
|
|
RD, called `cord_ep`. Simply use that shell command without parameters for
|
|
|
|
more information on its usage.
|
|
|
|
|
|
|
|
Some connection parameters are configured statically during compile time,
|
2020-09-01 11:07:07 +02:00
|
|
|
namely the lifetime (`CONFIG_CORD_LT`) and the node's endpoint name (`CONFIG_CORD_EP`). You
|
2018-10-15 11:46:38 +02:00
|
|
|
can change these values at compile time by overriding their defines using
|
|
|
|
command line arguments:
|
|
|
|
```
|
2020-09-01 11:07:07 +02:00
|
|
|
CFLAGS="-DCONFIG_CORD_EP=\\\"your_ep_name_here\\\"" make all
|
2018-10-15 11:46:38 +02:00
|
|
|
```
|
|
|
|
or by setting their values in the application's Makefile:
|
|
|
|
```
|
2020-09-01 11:07:07 +02:00
|
|
|
CFLAGS += "-DCONFIG_CORD_EP=\"MyNewEpName\""
|
2018-10-15 11:46:38 +02:00
|
|
|
```
|