IotHubConnectionString.getUrlModuleTwin(String deviceId, String moduleId) 方法
定义
Create url for requesting module twin
public URL getUrlModuleTwin(String deviceId, String moduleId)
参数
- deviceId
- String
The name of the device
- moduleId
- String
The name of the device
返回
URL
The Url in the following format: "https:hostname/twins/deviceId/modules/moduleId?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