共用方式為


TransportConfigOptions interface

屬性

host

Azure IoT 中樞的主機名稱。 (.azure-devices.net) 。

hubName
keyName

用來連線到Azure IoT 中樞服務的原則名稱。

sharedAccessSignature

用來驗證與 Azure IoT 中樞連線的共用存取簽章權杖。

tokenCredential

用來向 Azure IoT 中樞驗證連線的權杖認證。

tokenScope

用來從 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

用來向 Azure IoT 中樞驗證連線的權杖認證。

tokenCredential?: TokenCredential

屬性值

tokenScope

用來從 TokenCredential 物件取得權杖的權杖範圍

tokenScope?: string

屬性值

string