你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

TransportConfig interface

传输和 AuthenticationProvider 对象用于存储和交换凭据的配置结构。

属性

deviceId

设备唯一标识符。

gatewayHostName

充当设备或协议网关的主机的 IP 地址或 Internet 名称。 与 Azure Edge 设备通信时使用。

host

Azure IoT 中心实例的主机名。

moduleId

模块唯一标识符。

sharedAccessKey

共享访问密钥用于对安全令牌进行签名。

sharedAccessKeyName

共享访问密钥用于对安全令牌进行签名的策略的名称。

sharedAccessSignature

使用基于令牌的身份验证时,用于对设备进行身份验证的共享访问签名安全令牌。

x509

包含设备用来连接并使用 Azure IoT 中心实例进行身份验证的证书和密钥的对象。

属性详细信息

deviceId

设备唯一标识符。

deviceId: string

属性值

string

gatewayHostName

充当设备或协议网关的主机的 IP 地址或 Internet 名称。 与 Azure Edge 设备通信时使用。

gatewayHostName?: string

属性值

string

host

Azure IoT 中心实例的主机名。

host: string

属性值

string

moduleId

模块唯一标识符。

moduleId?: string

属性值

string

sharedAccessKey

共享访问密钥用于对安全令牌进行签名。

sharedAccessKey?: string

属性值

string

sharedAccessKeyName

共享访问密钥用于对安全令牌进行签名的策略的名称。

sharedAccessKeyName?: string

属性值

string

sharedAccessSignature

使用基于令牌的身份验证时,用于对设备进行身份验证的共享访问签名安全令牌。

sharedAccessSignature?: string

属性值

string

x509

包含设备用来连接并使用 Azure IoT 中心实例进行身份验证的证书和密钥的对象。

x509?: X509

属性值