IoTHubMessage_SetConnectionModuleId()

Sets connection module ID. CAUTION: SDK user should not call it directly, it is for internal use only.

Syntax

#include "azure-iot-sdk-c/iothub_client/inc/iothub_message.h"

IOTHUB_MESSAGE_RESULT IoTHubMessage_SetConnectionModuleId(
  IOTHUB_MESSAGE_HANDLE  iotHubMessageHandle,
  const char *           connectionModuleId
);

Parameters

  • iotHubMessageHandle Handle to the message.

  • connectionModuleId Pointer to the module ID of connector

Return Value

Returns IOTHUB_MESSAGE_OK if the connectionModuleId was set successfully or an error code otherwise.