Skip to content

Commit 398b8f6

Browse files
authored
Possibility of device to cloud communication failure even when the device shows as running
This error occurs when the code has been successfully uploaded to the device and we are trying to test the device and its communication with the cloud. Since it is using MQTT, we need to ensure that the firewall and router are not blocking the communication.
1 parent 246d38d commit 398b8f6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

articles/iot-hub/iot-hub-arduino-iot-devkit-az3166-get-started.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,17 @@ The sample application is running successfully when you see the following result
317317
318318
![Serial monitor output](media/iot-hub-arduino-devkit-az3166-get-started/getting-started/result-serial-output.png)
319319
320+
> [!NOTE]
321+
>In case you receive the below errors during testing, notice that the LED is not blinking, and the Azure Portal does not show the incoming data from the device, but the device OLED screen shows as Running... go to the device inside the IoT Hub within Azure Portal and send message to the device. If you see the response in the serial monitor within VS Code, there is a possibility that the direct communication from the device is getting blocked at the router level. You can check for the firewall or the router rules configured for the connecting devices. Check if the outbound port 1833 is open as well.
322+
>ERROR: mqtt_client.c (ln 454): Error: failure opening connection to endpoint
323+
>INFO: >>>Connection status: disconnected
324+
>ERROR: tlsio_mbedtls.c (ln 604): Underlying IO open failed
325+
>ERROR: mqtt_client.c (ln 1042): Error: io_open failed
326+
>ERROR: iothubtransport_mqtt_common.c (ln 2283): failure connecting to address atcsliothub.azure-devices.net.
327+
>INFO: >>>Re-connect.
328+
>INFO: IoThub Version: 1.3.6
329+
330+
320331
### View the telemetry received by Azure IoT Hub
321332
322333
You can use [Azure IoT Tools](https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.azure-iot-tools) to monitor device-to-cloud (D2C) messages in IoT Hub.

0 commit comments

Comments
 (0)