discover method
Discovers remote resources.
Implementation
Future<Iterable<CoapWebLink>?> discover({
final Uri? uri,
}) async {
final discover = CoapRequest.get(uri ?? CoapConstants.defaultWellKnownURI);
final links = await send(discover);
if (links.contentFormat != CoapMediaType.applicationLinkFormat) {
return <CoapWebLink>[CoapWebLink('')];
} else {
return CoapLinkFormat.parse(links.payloadString);
}
}