get

suspend fun get(uri: CoapUri, configure: CoapRequest.Builder.() -> Unit = {}): CoapResponse(source)

GET (RFC 7252 §5.8.1) of uri; configure adds options or makes it Non-confirmable.


suspend fun get(uri: String, configure: CoapRequest.Builder.() -> Unit = {}): CoapResponse(source)

GET of the CoAP URI uri.