IoTHubMessaging_LL_Open()

Opens connection to IoTHub.

Syntax

#include "azure-iot-sdk-c/iothub_service_client/inc/iothub_messaging_ll.h"

IOTHUB_MESSAGING_RESULT IoTHubMessaging_LL_Open(
  IOTHUB_MESSAGING_HANDLE        messagingHandle,
  IOTHUB_OPEN_COMPLETE_CALLBACK  openCompleteCallback,
  void *                         userContextCallback
);

Parameters

  • messagingClientHandle The handle created by a call to the create function.

  • openCompleteCallback The callback specified by the user for receiving confirmation of the connection opened. The user can specify a NULL value here to indicate that no callback is required.

  • userContextCallback User specified context that will be provided to the callback. This can be NULL.

Return Value

IOTHUB_MESSAGING_OK upon success or an error code upon failure.