request

suspend fun request(client: CoapClient, request: CoapRequest): CoapResponse(source)

Sends request with client, again after each 4.29 or 5.03 as the class describes, and returns the last response: one of another code, a refusal whose wait is longer than maxWait, or the answer to the last attempt.

Throws