microsoft / ros_azure_iothub

This repository contains a ROS node for bidirectional communication with IoT Hub
38 stars 30 forks source link

Connection Fails within ROS #51

Open GrosserHase opened 11 months ago

GrosserHase commented 11 months ago

Hello everyone,

we are trying to use this ROS Package to connect with our Azure IoT Hub. After starting the launch file, we receive the following error:

[ INFO] [1694792380.948178700]: Creating IoTHub Device handle [ INFO] [1694792380.951205800]: connection_string: SetAnonymusByMyself [ INFO] [1694792380.952589500]: Using Shared Access Signatures authentication. Error: Time:Fri Sep 15 17:40:02 2023 File:D:\bld\azure-c-shared-utility\src\305becb8b4-13d51db0dd.clean\adapters\socketio_win32.c Func:connect_socket Line:190 Failure: connect failure 10060. Error: Time:Fri Sep 15 17:40:02 2023 File:D:\bld\azure-c-shared-utility\src\305becb8b4-13d51db0dd.clean\adapters\socketio_win32.c Func:initiate_socket_connection Line:228 connect_socket failed Error: Time:Fri Sep 15 17:40:02 2023 File:D:\bld\azure-c-shared-utility\src\305becb8b4-13d51db0dd.clean\adapters\socketio_win32.c Func:socketio_open Line:475 initiate_socket_connection failed Error: Time:Fri Sep 15 17:40:02 2023 File:D:\bld\azure-umqtt-c\src\6589726cd0-9f313f3693.clean\src\mqtt_client.c Func:onOpenComplete Line:454 Error: failure opening connection to endpoint Error: Time:Fri Sep 15 17:40:02 2023 File:D:\bld\azure-c-shared-utility\src\305becb8b4-13d51db0dd.clean\adapters\tlsio_schannel.c Func:tlsio_schannel_open Line:1238 xio_open failed Error: Time:Fri Sep 15 17:40:02 2023 File:D:\bld\azure-umqtt-c\src\6589726cd0-9f313f3693.clean\src\mqtt_client.c Func:mqtt_client_connect Line:1042 Error: io_open failed Error: Time:Fri Sep 15 17:40:02 2023 File:D:\bld\azure-iot-sdk-c\src\22e1b375fe-0b7b930b40.clean\iothub_client\src\iothubtransport_mqtt_common.c Func:SendMqttConnectMsg Line:2329 failure connecting to address facpremiumhub.azure-devices.net. [ INFO] [1694792402.066324300]: The device client has been disconnected

Within /rosout, we receive the following message:


header: seq: 87 stamp: secs: 1694791855 nsecs: 961817300 frame_id: '' level: 2 name: "/roscpp_azure_iothub_node" msg: "The device client has been disconnected" file: "C:\catkin_ws\src\ros_azure_iothub\roscpp_azure_iothub\src\ros_azure_iothub_cpp_node.cpp" function: "__cdecl connection_status_callback" line: 163 topics:

I already changed the connection string to something completly random and afterwards, the connection error is something completly different. So I assume, that the connection string is correct. Could there be any problem, with some network settings?

Does anyone have an idea, where does that come from or what could be the issue? Any help is highly appreciated. Thanks :)

Kindly regards