IoTHubAmqpClientTokenAuth Class
- Inheritance
-
IoTHubAmqpClientTokenAuth
Constructor
IoTHubAmqpClientTokenAuth(hostname, token_credential, token_scope='https://iothubs.azure.net/.default')
Parameters
Name | Description |
---|---|
hostname
Required
|
|
token_credential
Required
|
|
token_scope
|
Default value: https://iothubs.azure.net/.default
|
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
|
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.
Azure SDK for Python