# Creating UDTs with MQTT Devices

**URL:** <https://forum.inductiveautomation.com/t/creating-udts-with-mqtt-devices/51048>\
**Category:** Ignition\
**Created:** [September 16, 2021, 8:37pm UTC](https://forum.inductiveautomation.com/t/creating-udts-with-mqtt-devices/51048 "2021-09-16T20:37:02Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![Yousef\_Ali](https://avatars.discourse-cdn.com/v4/letter/y/87869e/32.png) [@Yousef\_Ali](https://forum.inductiveautomation.com/u/Yousef_Ali)\
**Post date:** [February 21, 2025, 2:03pm UTC](https://forum.inductiveautomation.com/t/creating-udts-with-mqtt-devices/51048/21 "2025-02-21T14:03:29Z")

</div>

Ok, source will be Mqtt Tag which decoded in certain format like Protobuf .. I have code to decode the protobuf to normal JSON Document .  
Question : if going to use derived tag where going to build this decoding process .  
Normal i used TagChange script to do this onChange and write to new tags . But to use this direct on Mqtt Tag , this will be hard

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/0/907d9ba91e86c2aad99dd657f74adc769bf873a2.png)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 21, 2025, 2:45pm UTC](https://forum.inductiveautomation.com/t/creating-udts-with-mqtt-devices/51048/22 "2025-02-21T14:45:39Z")

</div>

You can use the `runScript()` expression function pointing at a function in the global scripting project's libraries.

[Previous page](https://forum.inductiveautomation.com/t/creating-udts-with-mqtt-devices/51048.md?page=1)
