nabto_device_service_invocation_set_message()

DESCRIPTION

Set the message for the service invocation. The message is handled as binary data.

DECLARATION

NABTO_DEVICE_DECL_PREFIX NabtoDeviceError NABTO_DEVICE_API
nabto_device_service_invocation_set_message(NabtoDeviceServiceInvocation* serviceInvocation, const uint8_t* message, size_t messageLength)

PARAMETERS

serviceInvocation:
[in] The service invocation object
message:
[in] The message to set
messageLength:
[in] Length of the message

RETURNS

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