ESP-MQTT and Azure IoT Hub

ErickCastle
Posts: 1
Joined: Tue Oct 26, 2021 4:21 pm

ESP-MQTT and Azure IoT Hub

Postby ErickCastle » Tue Oct 26, 2021 5:15 pm

Hi,

I want to connect an ESP32 to Azure IoT Hub, without using the ESP Azure IoT SDK (https://github.com/espressif/esp-azure). It seems that it could be done with ESP-MQTT (https://docs.espressif.com/projects/esp ... /mqtt.html).

I would like to know what information I need to put inside the esp_mqtt_client_config_t mqtt_cfg = {}, to be able to connect to the IoT Hub.

I already know how to send D2C messages using devices/{device_id}/messages/events/, but I'm not able to test it since I can't connect to the IoT Hub. In the Microsoft Docs there are some indications of what must be the username, and the password, but nothing about the URI.

Here are the docs https://docs.microsoft.com/en-us/azure/ ... tt-support

Who is online

Users browsing this forum: david_hambo and 116 guests