Hi
I'm using a nrf9160 DK running sample azure_iot_hub in nRF connect sdk v1.6.1
After generating the necessary certificates and loading them to the modem using Certificate manager in LTE Link Monitor v1.1.10, and setting the config according to the instructions in this guide: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/networking/azure_iot_hub.html#azure-iot-hub-flash-certs, I still get a 111 error (connection refused?).
This is the listing from LTE link monitor:
2021-09-10T07:12:07.065Z DEBUG modem << *** Booting Zephyr OS build v2.6.0-rc1-ncs1 *** 2021-09-10T07:12:07.076Z DEBUG modem << Azure IoT Hub sample started 2021-09-10T07:12:07.080Z DEBUG modem << Connecting to LTE network 2021-09-10T07:12:08.083Z DEBUG modem << [00:00:00.214,813] [0m<dbg> azure_iot_hub.connection_state_set: New connection state: STATE_INIT[0m 2021-09-10T07:12:10.855Z DEBUG modem << +CEREG: 2,"09C5","02009416",7 2021-09-10T07:12:10.879Z DEBUG modem << LTE cell changed: Cell ID: 33592342, Tracking area: 2501 2021-09-10T07:12:10.890Z DEBUG modem << +CSCON: 1 2021-09-10T07:12:10.897Z DEBUG modem << RRC mode: Connected 2021-09-10T07:12:13.029Z DEBUG modem << +CEREG: 5,"09C5","02009416",7,,,"11100000","11100000" 2021-09-10T07:12:13.057Z DEBUG modem << Network registration status: Connected - roaming 2021-09-10T07:12:13.060Z DEBUG modem << Connected to LTE network 2021-09-10T07:12:13.062Z DEBUG modem << PSM parameter update: TAU: -1, Active time: -1 2021-09-10T07:12:13.224Z DEBUG modem << AZURE_IOT_HUB_EVT_CONNECTING 2021-09-10T07:12:13.330Z DEBUG modem << azure_iot_hub_connect failed: -111 2021-09-10T07:12:14.045Z DEBUG modem << [00:00:06.178,070] [0m<dbg> azure_iot_hub.connection_state_set: New connection state: STATE_CONNECTING[0m 2021-09-10T07:12:14.055Z DEBUG modem << [00:00:06.364,135] [0m<dbg> azure_iot_hub.broker_init: IPv4 Address found 20.50.65.131[0m 2021-09-10T07:12:14.061Z DEBUG modem << [00:00:06.469,055] [1;31m<err> azure_iot_hub: mqtt_connect, error: -111[0m 2021-09-10T07:12:14.069Z DEBUG modem << [00:00:06.469,055] [1;31m<err> azure_iot_hub: Failed to connect MQTT client, error: -111[0m 2021-09-10T07:12:14.082Z DEBUG modem << [00:00:06.469,055] [0m<dbg> azure_iot_hub.connection_state_set: New connection state: STATE_INIT[0m 2021-09-10T07:12:18.323Z DEBUG modem << +CSCON: 0 2021-09-10T07:12:18.331Z DEBUG modem << RRC mode: Idle
All he certificates are installed; as shown here:
2021-09-10T07:15:21.530Z DEBUG modem >> AT%CMNG=1 2021-09-10T07:15:21.549Z DEBUG modem << %CMNG: 0,6,"0606060606060606060606060606060606060606060606060606060606060606" 2021-09-10T07:15:21.552Z DEBUG modem << %CMNG: 10,0,"0000000000000000000000000000000000000000000000000000000000000000" 2021-09-10T07:15:21.565Z DEBUG modem << %CMNG: 10,1,"0101010101010101010101010101010101010101010101010101010101010101" 2021-09-10T07:15:21.572Z DEBUG modem << %CMNG: 10,2,"0202020202020202020202020202020202020202020202020202020202020202" 2021-09-10T07:15:21.582Z DEBUG modem << %CMNG: 4294967293,10,"0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A" 2021-09-10T07:15:21.589Z DEBUG modem << %CMNG: 4294967292,11,"0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B" 2021-09-10T07:15:21.595Z DEBUG modem << OK
any suggestion to how to fix this connection problem?