# MQTT Message Decoding

**URL:** <https://forum.inductiveautomation.com/t/mqtt-message-decoding/34638>\
**Category:** 3rd Party Modules\
**Created:** [May 11, 2020, 9:08pm UTC](https://forum.inductiveautomation.com/t/mqtt-message-decoding/34638 "2020-05-11T21:08:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bpien](https://avatars.discourse-cdn.com/v4/letter/b/e9a140/32.png) [@bpien](https://forum.inductiveautomation.com/u/bpien)\
**Post date:** [May 11, 2020, 9:08pm UTC](https://forum.inductiveautomation.com/t/mqtt-message-decoding/34638/1 "2020-05-11T21:08:28Z")

</div>

Hello,

I want to subscribe and publish MQTT messages with MQTT Engine module.  
A devices send messages with following topics: building\_A/floor\_B/room\_C and payload of message: [‘normal’, 1, 1589229676.6371894, 77] so it send just array of data. Subscription works great, I can read messeges.  
It contain state of room, the light state, timestamp and light brightnes. Is there way to break this data into separate tags in that module, should I write my own piece of code or use UDT’s?  
If I use my own code or UDT’s to decode that array it will be difficult to perform write procedure, am I correct?
