nabto_device_service_invocation_execute()

DESCRIPTION

Invoke a service. The future resolves with the status of the operation. After the invocation has succeeded the response message and status code can be read from the object.

The future status is

  • NABTO_DEVICE_EC_OK if the invocation succeeded.
  • NABTO_DEVICE_EC_FAILED if the invocation failed, see the log for further error diagnosis.

DECLARATION

NABTO_DEVICE_DECL_PREFIX void NABTO_DEVICE_API
nabto_device_service_invocation_execute(NabtoDeviceServiceInvocation* serviceInvocation, NabtoDeviceFuture* future)

PARAMETERS

serviceInvocation:
The service invocation object.
future:
The future which is resolved when the result is ready.

RETURN VALUES

None.

EXAMPLES

None.