nabto_device_service_invocation_set_service_id()

DESCRIPTION

Set the service ID to invoke. The service ID is created in the Nabto Cloud Console.

DECLARATION

NABTO_DEVICE_DECL_PREFIX NabtoDeviceError NABTO_DEVICE_API
nabto_device_service_invocation_set_service_id(NabtoDeviceServiceInvocation* serviceInvocation, const char* serviceId)

PARAMETERS

serviceInvocation:
[in] The service invocation object
serviceId:
[in] The service ID to invoke

RETURNS

  • NABTO_DEVICE_EC_OK: iff the serviceId is set
  • NABTO_DEVICE_EC_OUT_OF_MEMORY: if memory allocation failed