IoTHubModuleClient_ModuleMethodInvokeAsync

Function IoTHubModuleClient_ModuleMethodInvokeAsync 

Source
pub unsafe extern "C" fn IoTHubModuleClient_ModuleMethodInvokeAsync(
    iotHubModuleClientHandle: IOTHUB_MODULE_CLIENT_HANDLE,
    deviceId: *const c_char,
    moduleId: *const c_char,
    methodName: *const c_char,
    methodPayload: *const c_char,
    timeout: c_uint,
    methodInvokeCallback: IOTHUB_METHOD_INVOKE_CALLBACK,
    context: *mut c_void,
) -> IOTHUB_CLIENT_RESULT
Expand description

@brief This API invokes a module method on a specified module

@param iotHubModuleClientHandle The handle created by a call to a create function @param deviceId The device id of the device to invoke a method on @param moduleId The module id of the module to invoke a method on @param methodName The name of the method @param methodPayload The method payload (in json format) @param timeout The time in seconds before a timeout occurs

@warning The timeout parameter is ignored. See https://github.com/Azure/azure-iot-sdk-c/issues/1378. The timeout used will be the default for IoT Edge.

@param responseStatus This pointer will be filled with the response status after invoking the module method @param responsePayload This pointer will be filled with the response payload @param responsePayloadSize This pointer will be filled with the response payload size

@return IOTHUB_CLIENT_OK upon success, or an error code upon failure.