你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
TransportConfigOptions interface
属性
host | Azure IoT 中心的主机名。 (.azure-devices.net) 。 |
hub |
|
key |
用于连接到Azure IoT 中心服务的策略的名称。 |
shared |
用于对与 Azure IoT 中心的连接进行身份验证的共享访问签名令牌。 |
token |
用于对与 Azure IoT 中心的连接进行身份验证的令牌凭据。 |
token |
用于从 TokenCredential 对象获取令牌的令牌范围 |
属性详细信息
host
Azure IoT 中心的主机名。 (.azure-devices.net) 。
host: string
属性值
string
hubName
警告
现已弃用此 API。
This is not used anywhere anymore. Name of the Azure IoT hub. (The first section of the Azure IoT hub hostname)
hubName?: string
属性值
string
keyName
用于连接到Azure IoT 中心服务的策略的名称。
keyName?: string
属性值
string
sharedAccessSignature
用于对与 Azure IoT 中心的连接进行身份验证的共享访问签名令牌。
sharedAccessSignature?: string | SharedAccessSignature
属性值
string | SharedAccessSignature
tokenCredential
tokenScope
用于从 TokenCredential 对象获取令牌的令牌范围
tokenScope?: string
属性值
string