MQTT connection refused ESP iot kit Sample Code

Pierre C 6 Reputation points
2022-05-17T23:22:50.763+00:00

Hello,

I tried to use https://github.com/Azure-Samples/iot-middleware-freertos-samples/tree/main/demos/projects/ESPRESSIF/aziotkit to get my ESP connected to Azure Iot Hub. I am running it on a custom board but the structure is very close to what is on the AZIOTKIT.
I don't understand why the MQTT is unauthorized after the first successful step of the DPS. The ESP crashes on the assert after that.

You can find the log below:

00:30:48.328 -> [0;32mI (11509) sample_azureiotkit: Waiting for time synchronization with SNTP server [0m
00:30:52.973 -> W (16139) wifi:

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

1 answer

Sort by: Most helpful
  1. Pierre C 6 Reputation points
    2022-05-24T06:56:42.25+00:00

    Thanks for everything @risolis ,
    For anyone passing by, removing the module Id from the config file is the solution as the new device created by DPS has no module as a default.
    P.

    1 person found this answer helpful.