This API specifies a callback to be used when the device receives the message.


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

IOTHUB_MESSAGING_RESULT IoTHubMessaging_LL_SetFeedbackMessageCallback(
  IOTHUB_MESSAGING_HANDLE                    messagingHandle,
  void *                                     userContextCallback


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

  • feedbackMessageReceivedCallback The callback specified by the user to be used for receiveng confirmation feedback from the deice about the recevied message.

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

NOTE: The application behavior is undefined if the user calls the IoTHubMessaging_Destroy or IoTHubMessaging_Close function from within any callback.

Return Value

IOTHUB_CLIENT_OK upon success or an error code upon failure.