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?