mcocak / core-coap-protocol-negotiation

CoAP Protocol Negotiation draft
0 stars 1 forks source link

RD look-up on resource #7

Open mcocak opened 6 years ago

mcocak commented 6 years ago

According to RD draft, section 7.1:

Links that did not have an anchor attribute are therefore returned with the (explicitly or implicitly set) base URI of the registration as the anchor. Links whose href or anchor was submitted as an absolute URI are returned with respective attributes unmodified.

So if there is any "at" registered for the endpoint, should it be returned on a look-up on a resource?

RD suggests using "anchor" to return the alternative transport so can there be multiple "anchor"?

Req: GET /rd-lookup/res?rt=temperature&tt=tcp

Res: 2.05 Content <coap+tcp://[2001:db8:f1::2]/temperature>;ct=0;rt="temperature"; if="core.s";anchor="coap+tcp://[2001:db8:f1::2]"