Coap.execute()

DESCRIPTION

Executes the request and blocks until the request is complete.

DECLARATION

    void execute()

THROWS EXCEPTIONS

NabtoRuntimeException:
with error code TIMEOUT if the request timed out (took more than 2 minutes.)
NabtoRuntimeException:
with error code STOPPED if the coap request or a parent object is stopped.
NabtoRuntimeException:
with error code NOT_CONNECTED if the connection is not established yet.