A CoAP link.
A link represents a resource supported by a CoAP end-point. Links
comprise the URI-reference at which the resource may be accessed,
along with a set of parameters that can be used to provide
additional information about the resource and how to use it.
Link resources are described in a text format registered as
application/link-format and can be obtained from a CoAP
end-point by getting the /.well-known/r resource from that
Create a LinkValue instance from a URI and a set of
Arbitrary keywords are accepted and stored as link
Extract and create a LinkValue instance from a resource
The ABNF grammar for link-value in CoAP is evaluated against
text to extract the URI and associated link parameters of a
link value. An instance of this class is created to hold
those parameters, and returned as link. The octets consumed
in defining the link are stripped, and the remainder returned
|Parameter:||text – A sequence of octets comprising a resource
description, optionally followed by other text.
- Return a string encoding the link-format representation of