I am trying to send a message to the IoT hub as well. I understood that the azure.iot.device.aio is for the async instance of IoT Hub Device client objects. However, if there is no internet connection, the device_client.send_message(data) will keep on retrying until the internet connection is restored which is a bit counter intuitive with the nature of its asynchronicity. Without internet connection, the device_client.send_message(data) becomes synchronous and will halt other operations. Is there a way to overcome this? I tried using threads but the issue persists.
hello Avirup. Great video !!! Unfortunately, I copy/pasted your code, the only thing that I changed was the connection string and even like that it didn"t work :( The error message says: 34 "asyncio.run() cannot be called from a running event loop") Any idea ?
What issues are you facing? If possible let’s connect over a quick discovery call at Topmate. You can book a slot for free and I can help you out over the call. topmate.io/avirup171
HI. I just tested my code again. It seems fine. You can also reach out to me directly on my email avirup.basu@live.com and I should be able to guide you. Thanks.
Thank you for the amazing tutorial!
Thank you brother, it worked. simple explanation.
Thank you very much for the tutorial.
I am trying to send a message to the IoT hub as well. I understood that the azure.iot.device.aio is for the async instance of IoT Hub Device client objects. However, if there is no internet connection, the device_client.send_message(data) will keep on retrying until the internet connection is restored which is a bit counter intuitive with the nature of its asynchronicity. Without internet connection, the device_client.send_message(data) becomes synchronous and will halt other operations. Is there a way to overcome this? I tried using threads but the issue persists.
hello Avirup.
Great video !!! Unfortunately, I copy/pasted your code, the only thing that I changed was the connection string and even like that it didn"t work :(
The error message says: 34 "asyncio.run() cannot be called from a running event loop")
Any idea ?
What issues are you facing? If possible let’s connect over a quick discovery call at Topmate. You can book a slot for free and I can help you out over the call.
topmate.io/avirup171
HI. I just tested my code again. It seems fine. You can also reach out to me directly on my email avirup.basu@live.com and I should be able to guide you. Thanks.