# MQTT connection status

**URL:** <https://forum.cirrus-link.com/t/mqtt-connection-status/252>\
**Category:** MQTT Modules\
**Tags:** mqtt-transmission, mqtt-engine\
**Created:** [September 16, 2022, 9:24am UTC](https://forum.cirrus-link.com/t/mqtt-connection-status/252 "2022-09-16T09:24:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arya](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Arya](https://forum.cirrus-link.com/u/Arya)\
**Post date:** [September 16, 2022, 9:24am UTC](https://forum.cirrus-link.com/t/mqtt-connection-status/252/1 "2022-09-16T09:24:01Z")

</div>

hi team,

Is there any function to check mosquito MQTT connection status from ignition.

whenever the message is not published or there is a connectivity drop i need to capture it.

---

<div class="post-metadata">

**Author:** ![wes.johnson](https://avatars.discourse-cdn.com/v4/letter/w/f14d63/32.png) [@wes.johnson](https://forum.cirrus-link.com/u/wes.johnson)\
**Post date:** [September 16, 2022, 2:51pm UTC](https://forum.cirrus-link.com/t/mqtt-connection-status/252/2 "2022-09-16T14:51:17Z")

</div>

What MQTT module(s) are you using in Ignition?

---

<div class="post-metadata">

**Author:** ![eichler-eng](https://avatars.discourse-cdn.com/v4/letter/e/ba8739/32.png) [@eichler-eng](https://forum.cirrus-link.com/u/eichler-eng)\
**Post date:** [November 2, 2024, 11:33am UTC](https://forum.cirrus-link.com/t/mqtt-connection-status/252/3 "2024-11-02T11:33:13Z")

</div>

Hi. Old thread… I’m using ignition cloud with the MQTT modules. Is there a tag that tells me if my edge device is connected? In MQTT engine, the tag “node Info/Online” is always true until I reconnect the edge device when it turns false then back to true again.

Cheers

---

<div class="post-metadata">

**Author:** ![wes.johnson](https://avatars.discourse-cdn.com/v4/letter/w/f14d63/32.png) [@wes.johnson](https://forum.cirrus-link.com/u/wes.johnson)\
**Post date:** [November 4, 2024, 5:58pm UTC](https://forum.cirrus-link.com/t/mqtt-connection-status/252/4 "2024-11-04T17:58:33Z")

</div>

The Node Info/Online tag should show when the Edge is on/off line. What is the Edge implementation you are using?

---

<div class="post-metadata">

**Author:** ![eichler-eng](https://avatars.discourse-cdn.com/v4/letter/e/ba8739/32.png) [@eichler-eng](https://forum.cirrus-link.com/u/eichler-eng)\
**Post date:** [November 7, 2024, 11:48pm UTC](https://forum.cirrus-link.com/t/mqtt-connection-status/252/5 "2024-11-07T23:48:22Z")

</div>

Hi and thanks for the reply.

At the edge, I am using a Weintek HMI (cMT3072XH2) that supports Sparkplug B, MQTT 3.1.1.

I could resort to sending a “lifebit” signal to check if the edge device is still connected. I was hoping that the MQTT module in ignition would know that the device was connected.

---

<div class="post-metadata">

**Author:** ![wes.johnson](https://avatars.discourse-cdn.com/v4/letter/w/f14d63/32.png) [@wes.johnson](https://forum.cirrus-link.com/u/wes.johnson)\
**Post date:** [November 8, 2024, 12:04am UTC](https://forum.cirrus-link.com/t/mqtt-connection-status/252/6 "2024-11-08T00:04:01Z")

</div>

I’m not familiar with the Weintek HMI but I do see they have not joined the Eclipse Sparkplug Working Group and passed the TCK. So, I don’t know that their implementation is correct. Engine relies on properly implemented Sparkplug features to denote when/if an Edge Node is offline. I would guess they probably aren’t using the Will Message or something similar properly…

---

<div class="post-metadata">

**Author:** ![eichler-eng](https://avatars.discourse-cdn.com/v4/letter/e/ba8739/32.png) [@eichler-eng](https://forum.cirrus-link.com/u/eichler-eng)\
**Post date:** [November 11, 2024, 9:33am UTC](https://forum.cirrus-link.com/t/mqtt-connection-status/252/7 "2024-11-11T09:33:51Z")

</div>

Hi and thanks for the reply. Understood regarding Sparkplug implementation. I guess I might have to setup a “heart beat” tag.
