IoTHubAmqpClientSharedAccessKeyAuth Class
- Inheritance
-
IoTHubAmqpClientSharedAccessKeyAuth
Constructor
IoTHubAmqpClientSharedAccessKeyAuth(hostname, shared_access_key_name, shared_access_key)
Parameters
Name | Description |
---|---|
hostname
Required
|
|
shared_access_key_name
Required
|
|
shared_access_key
Required
|
|
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
|
The name (Id) of the device. |
message
Required
|
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
|
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python