IotHubConnectionString.getUrlModule 方法
定义
重载
getUrlModule(String deviceId, String moduleId) |
Create url for requesting module data
|
getUrlModule(String hostName, String deviceId, String moduleId) |
Create url for requesting module data
|
getUrlModule(String deviceId, String moduleId)
Create url for requesting module data
public URL getUrlModule(String deviceId, String moduleId)
参数
- deviceId
- String
The name of the device
- moduleId
- String
The name of the device
返回
The device Url in the following format: "https:hostname/devices/deviceId/modules/moduleId?api-version=201X-XX-XX"
例外
This exception is thrown if the URL creation failed due to malformed string
This exception is thrown if device id is null or empty
getUrlModule(String hostName, String deviceId, String moduleId)
Create url for requesting module data
public static URL getUrlModule(String hostName, String deviceId, String moduleId)
参数
- hostName
- String
The hostname of the IoT Hub
- deviceId
- String
The name of the device
- moduleId
- String
The name of the device
返回
The device Url in the following format: "https:hostname/devices/deviceId/modules/moduleId?api-version=201X-XX-XX"
例外
This exception is thrown if the URL creation failed due to malformed string
This exception is thrown if device id is null or empty