HttpsTransportManager.invokeMethod(MethodRequest methodRequest, String deviceId, String moduleId) 方法

定义

Invoke a direct method to the provided uri

public MethodResult invokeMethod(MethodRequest methodRequest, String deviceId, String moduleId)

参数

methodRequest
MethodRequest

the method request to make

deviceId
String

the device id of the device the moduleId belongs to

moduleId
String

the module id of the module to invoke the method on

返回

the result of that request

例外

IOException

if the IotHub cannot be reached

URISyntaxException

if the provided deviceId and/or moduleId cannot be encoded correctly

TransportException

if any issues occur when sending the http request to its target

适用于