I have an IoT Hub in Microsoft Azure with two devices, device1 and device2; I want to connect the IoT Hub to Azure Stream Analytics to store the data sent by the devices in a database in Azure, or visualize them in power bi; but when I try to visualize the data in power bi, it only shows one of the messages sent by a device, I clarify that the data sent by each device is different.
The device1 sends the following message:
{"messageId": 1272, "deviceId": "Raspberry Pi Web Client", "temperature": 23.815921380797004, "humidity": 78.7491052866882}
The device2 sends the following message:
{"messageId": 5576, "deviceId": "Raspberry Pi Web", "rpm": 22.80972122577826, "torque": 72.65678451219686}
I have already successfully connected the IoT Hub with Azure Stream Analytics when there is only one device running in the IoT Hub; but when the two devices in IoT Hub work at the same time only one of the messages is shown and at other times the Stream Analytics service stops when it is already started.
As additional information I have followed these two tutorials:
Is it possible to connect an IoT Hub with two devices running at the same time and sending different types of messages with the Azure Stream Analytics?
I appreciate your attention.