Can two applications connect to Azure IoT Hub simultaneously without causing issues?
Hey guys @IoT Cloud i have a temperature monitoring app on a Raspberry Pi that connects to Azure IoT Hub using the C SDK over MQTT for sending temperature data and interacting with the device twin. I also need the device to receive updates, and it looks like the Azure Device Update agent is the solution for that.
Can two applications connect to Azure IoT Hub simultaneously without causing issues? If so, what steps are needed to prevent interference? If not, how should I handle updates and device twin interactions together?
Currently, when both my app and the device update agent are running, they interfere with each other's connections, resulting in frequent KEEPALIVE message resends. How can I resolve this?
Solution:Jump to solution
Yes Kalu you can connect multiple devices to Azure IoT Hub. This might be a helpful guide.
https://youtu.be/A_yJ5fbzxSk?si=Bvqx5NlEyuEP4Pum...
IoT Frontier
YouTube
Send a telemetry message to Azure IoT Hub from Raspberry Pi without...
This video is for beginners who want to connect and send a Device to Cloud(D2C) message to Azure IoT Hub from Raspberry Pi. This tutorial doesn't require any sensors to be connected. This is an Azure IoT Hub Demo.
This can be used as IoT projects for final year students
GitHub Repository: https://github.com/Hariharnath-Paduchuru/simple_send_me...
3 Replies
Two applications can connect to Azure IoT Hub simultaneously, but you need to ensure they use different client IDs or connections to avoid interference.
@Daniel kalu If your Raspberry Pi can run Docker containers, you can explore it using Azure IoT Edge.
Solution
Yes Kalu you can connect multiple devices to Azure IoT Hub. This might be a helpful guide.
https://youtu.be/A_yJ5fbzxSk?si=Bvqx5NlEyuEP4Pum
IoT Frontier
YouTube
Send a telemetry message to Azure IoT Hub from Raspberry Pi without...
This video is for beginners who want to connect and send a Device to Cloud(D2C) message to Azure IoT Hub from Raspberry Pi. This tutorial doesn't require any sensors to be connected. This is an Azure IoT Hub Demo.
This can be used as IoT projects for final year students
GitHub Repository: https://github.com/Hariharnath-Paduchuru/simple_send_me...