ESP32 with Azure for Publish and Subscribe of topic RRS feed

  • Question

  • Hi, 

    I am using the https://github.com/espressif/esp-azure using repo for ESP32 + Azure setup.

    Simple example of iothub_client_sample_mqtt, works fine.

    I understand this example only performs the publish of topic.

    I want to add another ESP32 and want this ESp32 to subscribe to topic from IotHub.

    Is there any example for 2 ESP32 + IoTHub(Azure)?

    There is a good example for ESP32 Pub/Sub, 

    https://randomnerdtutorials.com/esp32-mqtt-publish-subscribe-arduino-ide/ here they have used node RED broker. With same setup I want to use Azure instead of MQTT node RED broker.



    • Moved by Michael Xu-MSFT Thursday, September 26, 2019 1:08 AM This issue is related to Azure IoT Hub but not IoT Core
    Wednesday, September 25, 2019 10:06 AM

All replies

  • Hello BhushanPatil5,

    This forum is for Windows IoT Core/Windows IoT Enterprise support. But this issue seems not relative to Windows IoT Core/Windows IoT Enterprise. For better support, i will move this topic to Azure IoT Hub forum.

    Best Regards,


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, September 26, 2019 1:08 AM
  • @Bhushan,

    Please check the available samples here and let us know if that helps.

    Thursday, September 26, 2019 11:56 AM
  • Hello,

    I am looking inline with example provided in https://github.com/espressif/esp-azure read me doc.

    Using the same example for reference. 

    I can see from log

     -> 08:13:17 SUBSCRIBE | PACKET_ID: 2 | TOPIC_NAME: devices/B_IoT_Device_1/messages/devicebound/# | QOS: 1
    -> 08:13:17 PUBLISH | IS_DUP: false | RETAIN: 0 | QOS: DELIVER_AT_LEAST_ONCE | TOPIC_NAME: devices/B_IoT_Device_1/mes
    <- 08:13:17 SUBACK | PACKET_ID: 2 | RETURN_CODE: 1
    <- 08:13:17 PUBACK | PACKET_ID: 3

    SUBACK returns error.

    Appreciate if same example is modified to run for pub and sub.



    Friday, September 27, 2019 1:21 PM
  • In that case you might want to open an issue on that repository for the maintainers to evaluate your request.
    Wednesday, October 9, 2019 5:18 PM