Azure IoTHub rejects new devices: azure_iot_hub: Failed to connect MQTT client, error: -111

Alf E. Helseth 0 Reputation points
2024-05-13T13:42:52.3033333+00:00

My set of new devices are unable to connect to the IoTHub.

We have quite a number of existing devices connecting ok, this is new (factory) devices, with new certificates.

If I try a new device configured with one of the old (existing) certificates it connects fine, so probably the culprit is the new certificates.
However, this process is scripted, and should be done exactly the same way as last time.
I cannot see any errors in the AzureDiagnostics logs indicating this error.

Please, where/how should I search for the 111 "Connection refused" error details in the logs?
I'm using this query (returning no rows):

AzureDiagnostics
| where ResultType == "Failure"
| project TimeGenerated, OperationName, ResultType, ResultDescription

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,136 questions
0 comments No comments
{count} votes