# MQTT connection to Azure IoT Central is interrupted after 5 minutes

**URL:** <https://discourse.nodered.org/t/mqtt-connection-to-azure-iot-central-is-interrupted-after-5-minutes/47791>\
**Category:** General\
**Created:** [29 June 2021 12:09 UTC](https://discourse.nodered.org/t/mqtt-connection-to-azure-iot-central-is-interrupted-after-5-minutes/47791 "2021-06-29T12:09:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaitori](https://avatars.discourse-cdn.com/v4/letter/k/a4c791/32.png) [@kaitori](https://discourse.nodered.org/u/kaitori)\
**Post date:** [29 June 2021 12:09 UTC](https://discourse.nodered.org/t/mqtt-connection-to-azure-iot-central-is-interrupted-after-5-minutes/47791/1 "2021-06-29T12:09:58Z")

</div>

Hello,

I am running Node-RED version 1.3.5. I am facing an issue where my MQTT connection to my Azure IoT Central App broker is interrupted after 5 minutes as seen below :

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/c/bca94d94cd83c5cb731e24e4a3c1e2e371af3b54.png)

I've tried changing the keep-alive setting of the node but it didn't do anything and I have no way of checking the MQTT broker logs on the Azure side. I haven't been sending data to it yet, but at the end of the day I don't plan on having data sent in a timeframe lesser than 5 minutes so the connection should stay maintained.

Any help would be appreciated !

---

<div class="post-metadata">

**Author:** ![kaitori](https://avatars.discourse-cdn.com/v4/letter/k/a4c791/32.png) [@kaitori](https://discourse.nodered.org/u/kaitori)\
**Post date:** [30 June 2021 14:32 UTC](https://discourse.nodered.org/t/mqtt-connection-to-azure-iot-central-is-interrupted-after-5-minutes/47791/2 "2021-06-30T14:32:58Z")

</div>

It was not related to Node-RED in the end, it was all about the expiry time on the SAS token on the Azure side.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [14 July 2021 14:33 UTC](https://discourse.nodered.org/t/mqtt-connection-to-azure-iot-central-is-interrupted-after-5-minutes/47791/3 "2021-07-14T14:33:44Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
