ICoapRequest.ExecuteAsync()

DESCRIPTION

Execute a CoAP request asynchronously.

DECLARATION

System.Threading.Tasks.Task`1[Nabto.Edge.Client.ICoapResponse] ExecuteAsync()

ERRORS

  • T:Nabto.Edge.Client.NabtoException: Thrown with error code TIMEOUT if the request timed out.
  • T:Nabto.Edge.Client.NabtoException: Thrown with error code STOPPED if the coap request or a parent object is stopped.
  • T:Nabto.Edge.Client.NabtoException: Thrown with error code NOT_CONNECTED if the connection is not established yet.

RETURNS

Task which completes with a CoapResponse when the async operation completes