pub unsafe extern "C" fn IoTHubModuleClient_DeviceMethodInvokeAsync(
iotHubModuleClientHandle: IOTHUB_MODULE_CLIENT_HANDLE,
deviceId: *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_RESULTExpand description
@brief This API invokes a device method on a specified device
@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 methodName The name of the method @param methodPayload The method payload (in json format)
@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 device 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.