put

suspend fun put(uri: CoapUri, payload: ByteArray = ByteArray(0), contentFormat: Int? = null, configure: CoapRequest.Builder.() -> Unit = {}): CoapResponse(source)

PUT (RFC 7252 §5.8.3) of payload in contentFormat to uri; large bodies go in Block1 blocks.


suspend fun put(uri: String, payload: ByteArray = ByteArray(0), contentFormat: Int? = null, configure: CoapRequest.Builder.() -> Unit = {}): CoapResponse(source)

PUT to the CoAP URI uri.