# OPC DA Client, Device Read, MQTT Sourced Data

**URL:** <https://forum.inductiveautomation.com/t/opc-da-client-device-read-mqtt-sourced-data/53236>\
**Category:** Ignition\
**Created:** [November 18, 2021, 1:40pm UTC](https://forum.inductiveautomation.com/t/opc-da-client-device-read-mqtt-sourced-data/53236 "2021-11-18T13:40:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![wdougmiller](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@wdougmiller](https://forum.inductiveautomation.com/u/wdougmiller)\
**Post date:** [November 18, 2021, 1:40pm UTC](https://forum.inductiveautomation.com/t/opc-da-client-device-read-mqtt-sourced-data/53236/1 "2021-11-18T13:40:20Z")

</div>

Hello, I am working on a project where we want to publish the data via MQTT to Ignition, but we have a legacy OPC-DA client application that can only get the data via Device Reads. How does Ignition, as the OPC server, handle a device read when it’s data source is MQTT?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [November 18, 2021, 1:43pm UTC](https://forum.inductiveautomation.com/t/opc-da-client-device-read-mqtt-sourced-data/53236/2 "2021-11-18T13:43:38Z")

</div>

Ignition doesn’t have an OPC Classic/DA server so I’m not sure how to answer.

---

<div class="post-metadata">

**Author:** ![wdougmiller](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@wdougmiller](https://forum.inductiveautomation.com/u/wdougmiller)\
**Post date:** [November 18, 2021, 1:44pm UTC](https://forum.inductiveautomation.com/t/opc-da-client-device-read-mqtt-sourced-data/53236/3 "2021-11-18T13:44:16Z")

</div>

I suppose that it is the answer lol. It can’t handle that situation. ☹

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [November 18, 2021, 1:45pm UTC](https://forum.inductiveautomation.com/t/opc-da-client-device-read-mqtt-sourced-data/53236/4 "2021-11-18T13:45:09Z")

</div>

If it were an OPC UA client connection and the Exposed Tags feature was enabled the client would see the MQTT tags and a call to the Read service would just give you the current value as it sits in Ignition.

---

<div class="post-metadata">

**Author:** ![wdougmiller](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@wdougmiller](https://forum.inductiveautomation.com/u/wdougmiller)\
**Post date:** [November 18, 2021, 1:46pm UTC](https://forum.inductiveautomation.com/t/opc-da-client-device-read-mqtt-sourced-data/53236/5 "2021-11-18T13:46:11Z")

</div>

If I were to use an intermediate agent, like cogent data hub to bridge bridge the da client to ignitions ua server. Would a device read trigger a response by ignition? Would it send a demand poll to the edge ignition gateway to publish “fresh” data?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [November 18, 2021, 1:47pm UTC](https://forum.inductiveautomation.com/t/opc-da-client-device-read-mqtt-sourced-data/53236/6 "2021-11-18T13:47:35Z")

</div>

No, MQTT data arrives into Ignition exceptionally/unsolicited. The OPC UA server doesn’t even know what the source of the data is. You’d get the most recent value Ignition received, no demand poll or refresh would happen or is possible.

---

<div class="post-metadata">

**Author:** ![wdougmiller](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@wdougmiller](https://forum.inductiveautomation.com/u/wdougmiller)\
**Post date:** [November 18, 2021, 1:55pm UTC](https://forum.inductiveautomation.com/t/opc-da-client-device-read-mqtt-sourced-data/53236/7 "2021-11-18T13:55:25Z")

</div>

Thanks for the quick replies! I’ll keep digging through my problem. Has to be an answer for it somewhere in here. 🙂

Autosol eACM has a trigger for demand poll via mqtt. It’s a feature that Ignition should consider as a fundamental feature. Maybe the publish interval is set to a high time interval and you want to know at that moment what’s going on. It’s also a comfort factor for the transition taking place in a culture built on legacy polling.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [November 18, 2021, 1:56pm UTC](https://forum.inductiveautomation.com/t/opc-da-client-device-read-mqtt-sourced-data/53236/8 "2021-11-18T13:56:49Z")

</div>

If that trigger is exposed in the MQTT namespace and ends up as an Ignition tag, you can certainly trigger it by writing to it or whatever before you then issued the read call. But it’s not going to happen automatically as a pre-req to the read.

---

<div class="post-metadata">

**Author:** ![wdougmiller](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@wdougmiller](https://forum.inductiveautomation.com/u/wdougmiller)\
**Post date:** [November 18, 2021, 2:22pm UTC](https://forum.inductiveautomation.com/t/opc-da-client-device-read-mqtt-sourced-data/53236/9 "2021-11-18T14:22:18Z")

</div>

Sorry. I jumped topics to a feature request for Ignition Edge. I was just saying it would be cool if Ignition Edge knew what to do with a demand poll request.
