# Issue with Downlinks from Azure IoT Hub to Device via TTN

**URL:** <https://www.thethingsnetwork.org/forum/t/issue-with-downlinks-from-azure-iot-hub-to-device-via-ttn/65461>\
**Category:** TTN Network and Services\
**Tags:** integrations\
**Created:** [November 8, 2023, 9:01am UTC](https://www.thethingsnetwork.org/forum/t/issue-with-downlinks-from-azure-iot-hub-to-device-via-ttn/65461 "2023-11-08T09:01:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![inthings](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/i/c67d28/32.png) [@inthings](https://www.thethingsnetwork.org/forum/u/inthings)\
**Post date:** [November 8, 2023, 9:01am UTC](https://www.thethingsnetwork.org/forum/t/issue-with-downlinks-from-azure-iot-hub-to-device-via-ttn/65461/1 "2023-11-08T09:01:27Z")

</div>

Hello TTN Community,

I am currently experiencing an issue with Cloud-to-Device (C2D) messaging from Azure IoT Hub to a LoRa node device connected through The Things Network (TTN). I would greatly appreciate your assistance in resolving this issue. Below are the details of the problem:

**Description:**

- **Azure IoT Hub:** I am using Azure IoT Hub to send Cloud-to-Device messages to my LoRa node device, which is connected to TTN.
- **TTN Integration:** The LoRa node device is connected to TTN, and I have set up an integration to forward messages from TTN to my azure iot hub.

**Current Setup:**

- **Device:** I am using an ESP32 with an SX1278 LoRa module to send sensor data to TTN.
- **TTN Integration:** The device data is successfully forwarded to TTN, and I can receive the data in my Azure IoT Hub.

**Issue:**

- Cloud-to-Device messages from Azure IoT Hub do not appear to be reaching my LoRa node device connected to TTN.
- I have confirmed that the device is properly registered and activated on TTN, and messages from the device to the azure iot hub are working as expected.

I kindly request your expertise in troubleshooting and providing guidance on how to send data from Azure IoT Hub to my LoRa node device connected to TTN. I am currently able to send data from the device to the Azure IoT Hub successfully, but I am seeking assistance in setting up the communication in the reverse direction, from the Azure IoT Hub to the LoRa device.

If you have encountered a similar challenge or if you have any insights or suggestions on how to establish this bidirectional communication, please share them with me. Your guidance and support would be immensely valuable in helping me achieve this objective.

Thank you in advance for your time and assistance.

Best regards,  
Abhithlal C

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [November 8, 2023, 10:56am UTC](https://www.thethingsnetwork.org/forum/t/issue-with-downlinks-from-azure-iot-hub-to-device-via-ttn/65461/2 "2023-11-08T10:56:42Z")

</div>

> [@inthings](#):
>
> Cloud-to-Device messages from Azure IoT Hub do not appear to be reaching my LoRa node device connected to TTN.

Have you tried entering a downlink in the TTN console to check if that reaches the LoRa device? If not, please do so and report the results.

---

<div class="post-metadata">

**Author:** ![Piet\_Pillay](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/piet_pillay/32/35697_2.png) [@Piet\_Pillay](https://www.thethingsnetwork.org/forum/u/Piet_Pillay)\
**Post date:** [November 8, 2023, 11:52am UTC](https://www.thethingsnetwork.org/forum/t/issue-with-downlinks-from-azure-iot-hub-to-device-via-ttn/65461/3 "2023-11-08T11:52:29Z")

</div>

where in the documentation do they mention how to schedule downlinks from azure to ttn

how are you attempting to schedule these message from azure

---

<div class="post-metadata">

**Author:** ![inthings](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/i/c67d28/32.png) [@inthings](https://www.thethingsnetwork.org/forum/u/inthings)\
**Post date:** [November 10, 2023, 5:12am UTC](https://www.thethingsnetwork.org/forum/t/issue-with-downlinks-from-azure-iot-hub-to-device-via-ttn/65461/4 "2023-11-10T05:12:30Z")

</div>

I was referring to this document [LINK](https://www.thethingsindustries.com/docs/integrations/cloud-integrations/azure-iot-hub/device-twin/#:~:text=The%20Things%20Stack%20publishes%20uplink%20messages%20to%20Azure%20IoT%20Hub%20as%20device%20telemetry.%20The%20Things%20Stack%20updates%20the%20Device%20Twin%20reported%20properties%20of%20the%20device%2C%20and%20schedules%20downlinks%20when%20the%20Device%20Twin%20desired%20properties%20are%20changed.)

---

<div class="post-metadata">

**Author:** ![inthings](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/i/c67d28/32.png) [@inthings](https://www.thethingsnetwork.org/forum/u/inthings)\
**Post date:** [November 10, 2023, 5:23am UTC](https://www.thethingsnetwork.org/forum/t/issue-with-downlinks-from-azure-iot-hub-to-device-via-ttn/65461/5 "2023-11-10T05:23:54Z")

</div>

I am capable of arranging the downlink message from TTN, and it can be successfully received on my device.

 ![downlink message](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/a/a/aa105b20fd5abe92f6fd6a6e58f798e5644fdb9c.png)

Is it possible to send downlink message from azure iot hub to device?  
If yes, then how can I?

---

<div class="post-metadata">

**Author:** ![Piet\_Pillay](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/piet_pillay/32/35697_2.png) [@Piet\_Pillay](https://www.thethingsnetwork.org/forum/u/Piet_Pillay)\
**Post date:** [November 10, 2023, 5:47am UTC](https://www.thethingsnetwork.org/forum/t/issue-with-downlinks-from-azure-iot-hub-to-device-via-ttn/65461/6 "2023-11-10T05:47:02Z")

</div>

you will need to read the azure side of the documentation

here is a few recourse to reed i have not read them just googled for 2min to find this

> **[First look: The Things Network new Azure IoT Hub integration](https://sandervandevelde.wordpress.com/2021/09/22/first-look-the-things-network-new-azure-iot-hub-integration/)**
>
> Right from the start back in 2015, The Things Network supported connecting their LoraWan backend platform to other (cloud) platforms. Connecting to the Azure cloud was no exception to this. There w…

> <https://stackoverflow.com/questions/74026828/azure-digital-twins-the-things-network-2-way-communication>

> **[The Things Industries(TTI) V3 Azure IoT Connector](https://www.hackster.io/KiwiBryn/the-things-industries-tti-v3-azure-iot-connector-f78d2c)**
>
> Azure IoT Identity Translation cloud gateway for TTI with IoT Hub, IoT Central & DPS + TTI device registry, uplink/downlink message support By Bryn Lewis.

---

<div class="post-metadata">

**Author:** ![inthings](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/i/c67d28/32.png) [@inthings](https://www.thethingsnetwork.org/forum/u/inthings)\
**Post date:** [November 15, 2023, 4:32am UTC](https://www.thethingsnetwork.org/forum/t/issue-with-downlinks-from-azure-iot-hub-to-device-via-ttn/65461/7 "2023-11-15T04:32:54Z")

</div>

Thank you for your response, and I’m sorry for the delay in getting back to you. After going through the resources, unfortunately, I couldn’t solve my problem. It appears that scheduling a downlink from the device twin in Azure IoT Hub by modifying the desired property is possible. However, I also faced challenges in creating or deleting devices from Azure IoT Hub. I suspect that both issues may have the same underlying cause.
