IoTHubMessage_SetConnectionDeviceId()

Sets connection device 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_SetConnectionDeviceId(
  IOTHUB_MESSAGE_HANDLE  iotHubMessageHandle,
  const char *           connectionDeviceId
);

Parameters

  • iotHubMessageHandle Handle to the message.

  • connectionDeviceId Pointer to the device ID of connector

Return Value

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