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:
The service invocation object.
message:
The message.
messageLength:
Length of the message.

RETURN VALUES

NABTO_DEVICE_EC_OK iff the message is set. NABTO_DEVICE_EC_OUT_OF_MEMORY if memory allocation failed.

EXAMPLES

None.