2025-04-01 2:37 AM
I want to connect my STM32H573I-DK to Azure IoT Hub via MQTT over websocket to avoid firewall complications.
For that I am using STM32CubeExpansion_Cloud_AZURE_H5_V1.1.0 project (https://www.st.com/en/embedded-software/x-cube-azure-h5.html).
I added NXD_MQTT_OVER_WEBSOCKET to the preprocessor and added ../../../../../../../Middlewares/ST/netxduo/addons/websocket path to include paths to activate MQTT over websocket.
I still got connection issues: [ERROR] IoTHub client connect fail: MQTT CONNECT FAIL status: 65541
Disconnected from IoTHub!: error code = 0x00010005
Reconnecting iothub, after backoff
I debugged it to see that the nx_tcp_socket_receive throws an error 56.
Is there any explanation on how to use MQTT over websockets in that specific scenario or does somebody has experience with that? Or somebody who can help me in different way?
2025-04-01 2:59 AM - edited 2025-04-01 3:46 AM
duplicate - merged.