pub unsafe extern "C" fn IoTHubModuleClient_LL_SetMessageCallback(
iotHubModuleClientHandle: IOTHUB_MODULE_CLIENT_LL_HANDLE,
messageCallback: IOTHUB_CLIENT_MESSAGE_CALLBACK_ASYNC,
userContextCallback: *mut c_void,
) -> IOTHUB_CLIENT_RESULTExpand description
@brief Sets up the message callback to be invoked when Edge issues a message to the module. This is a blocking call.
@param iotHubModuleClientHandle The handle created by a call to the create function. @param messageCallback The callback specified by the module for receiving messages from IoT Hub. @param userContextCallback User specified context that will be provided to the callback. This can be @c NULL.
@warning: Do not call IoTHubModuleClient_LL_Destroy() or IoTHubModuleClient_LL_DoWork() from inside your application’s callback.
@return IOTHUB_CLIENT_OK upon success or an error code upon failure.