# Getting Data from IO Link through HiveMQ (MQTT)

**URL:** <https://forum.inductiveautomation.com/t/getting-data-from-io-link-through-hivemq-mqtt/87636>\
**Category:** Ignition\
**Created:** [March 20, 2024, 3:35pm UTC](https://forum.inductiveautomation.com/t/getting-data-from-io-link-through-hivemq-mqtt/87636 "2024-03-20T15:35:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HAFIZ\_AHMAD](https://avatars.discourse-cdn.com/v4/letter/h/9de053/32.png) [@HAFIZ\_AHMAD](https://forum.inductiveautomation.com/u/HAFIZ_AHMAD)\
**Post date:** [March 20, 2024, 3:35pm UTC](https://forum.inductiveautomation.com/t/getting-data-from-io-link-through-hivemq-mqtt/87636/1 "2024-03-20T15:35:42Z")

</div>

I'm doing some testing on sending data from IO-Link to Ignition through HiveMQ broker. I can receive the data but there are strings of code there. What can i do to just select the data that i want to display on the screen?  
 ![WhatsApp Image 2024-03-20 at 22.50.39_222f3137](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/7/f77c4e68e8f733886b5247aab3a52b2327b9b29d.jpeg)

---

<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:** [March 20, 2024, 3:44pm UTC](https://forum.inductiveautomation.com/t/getting-data-from-io-link-through-hivemq-mqtt/87636/2 "2024-03-20T15:44:32Z")

</div>

The easiest thing to do is probably to check the "JSON Payload" option on the custom namespace you set up in the MQTT Engine module. This should break the payload out into separate tags.

Otherwise you'll have to create expression tags that use the `jsonGet` function to pull each value out.

---

<div class="post-metadata">

**Author:** ![HAFIZ\_AHMAD](https://avatars.discourse-cdn.com/v4/letter/h/9de053/32.png) [@HAFIZ\_AHMAD](https://forum.inductiveautomation.com/u/HAFIZ_AHMAD)\
**Post date:** [March 20, 2024, 3:52pm UTC](https://forum.inductiveautomation.com/t/getting-data-from-io-link-through-hivemq-mqtt/87636/3 "2024-03-20T15:52:27Z")

</div>

I enabled the Json Payload, but still not working. IS there need to refreshing or reset anything?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/2/c25f6833ad8472ce75dc456fadad1d3594653d51.png)

---

<div class="post-metadata">

**Author:** ![HAFIZ\_AHMAD](https://avatars.discourse-cdn.com/v4/letter/h/9de053/32.png) [@HAFIZ\_AHMAD](https://forum.inductiveautomation.com/u/HAFIZ_AHMAD)\
**Post date:** [March 29, 2024, 3:57am UTC](https://forum.inductiveautomation.com/t/getting-data-from-io-link-through-hivemq-mqtt/87636/4 "2024-03-29T03:57:43Z")

</div>

To anyone who might need this. So the first time i created the tags, i didn't tick the JSON Payload. When i go back to tick it, it won't work also.  
What i did was i delete the tags, and recreate it again with tick JSON Payload. It works perfectly.
