CoapRequestFuture.get

Blocks until the response is received but will unbllock if the timeout given is exceeded

  1. CoapPacket get()
  2. CoapPacket get(Duration timeout)
    class CoapRequestFuture
    CoapPacket
    get
    (
    Duration timeout
    )

Return Value

Type: CoapPacket

the response as a CoapPacket

Throws

RequestTimeoutException on the future request timing out CoapClientException on cancellation of the request

Meta