IotHubConnectionString.getUrlTwin(String deviceId) 方法
定义
Create url for requesting device twin
public URL getUrlTwin(String deviceId)
参数
- deviceId
- String
The name of the device
返回
URL
The Url in the following format: "https:hostname/twins/deviceId?api-version=201X-XX-XX"
例外
MalformedURLException
This exception is thrown if the URL creation failed due to malformed string
IllegalArgumentException
This exception is thrown if device id is null or empty