Typo in the resource directory discovery
Status: Beta
Brought to you by:
obgm
According to the Core Resource directory draft [1]. The discovery of the registration should be done using the /.well-known/core and including a Resource Type (rt) with the value "core.rd". Like that:
GET /.well-known/core?rt=core.rd
There is a typo in the libcoap which accept the "core-rd" instead of the "core.rd" parameter. Actually, using the "core.rd" parameter gives an error:
WARN discard malformed PDU
Regards,
Oscar
[1] - https://tools.ietf.org/html/draft-ietf-core-resource-directory-05#section-5.1
Okay thanks. The reason is that the core-rd example implements an older
version of the RD draft. The naming has changed since.
Note that this bug tracker isn't really in use any more an will be
closed down soon. libcoap now lives at github
(https://github.com/obgm/libcoap) and uses that bug tracker.
All right, I will put my future issues in the github instead.
Before closing this thread, I would like to provide you with a couple of typos:
In case of a malformed discovery method for a unicast request, libcoap should return a "4.00 Bad Request", not "WARN discard malformed PDU"[2]
Please, change the libcoap project's URL from the examples/*.txt files directory. I got the information of this page from there.
Oscar
[1] https://tools.ietf.org/html/draft-ietf-core-resource-directory-05#section-5.3
[2] https://tools.ietf.org/html/draft-ietf-core-resource-directory-05#section-5.1