DeviceOperations 类

定义

Set of common operations for Twin and Method.

public class DeviceOperations
继承
java.lang.Object
DeviceOperations

方法

request(IotHubConnectionString iotHubConnectionString, URL url, HttpMethod method, byte[] payload, String requestId, int connectTimeout, int readTimeout, Proxy proxy)

Send a http request to the IoTHub using the Twin/Method standard, and return its response.

request(IotHubConnectionString iotHubConnectionString, URL url, HttpMethod method, byte[] payload, String requestId, long timeoutInMs)

Send a http request to the IoTHub using the Twin/Method standard, and return its response.

<xreftitle>Deprecated</xreftitle>

<xrefdescription>

  <p>use <xref uid="" data-throw-if-not-resolved="false" data-raw-source="request(IotHubConnectionString, URL, HttpMethod, byte[], String, int, int, Proxy)"></xref> instead. </p>

</xrefdescription>

setHeaders(Map<String, String> httpHeaders)

Sets headers to be used on next HTTP request.

适用于