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

IoTHubAmqpClientBase Class

Constructor

IoTHubAmqpClientBase()

Methods

disconnect_sync

Disconnect the Amqp client.

send_message_to_device

Send a message to the specified deivce.

disconnect_sync

Disconnect the Amqp client.

disconnect_sync()

send_message_to_device

Send a message to the specified deivce.

send_message_to_device(device_id, message, app_props)

Parameters

Name Description
device_id
Required
str

The name (Id) of the device.

message
Required
str

The message that is to be delivered to the device.

app_props
Required

Application and system properties for the message

Exceptions

Type Description
Exception if the Send command is not able to send the message