How to connect a UNS to the MQTT Engine and or MQTT Transmisson

Need some advice to see if this is possible with ignition. I have a UNS that i have to send tag data to that will be sent to a MQTT server with mosquito as its broker. I made a few clients on the UNS platform that was built but I am having issues trying to connect Ignition to UNS to write to. Any advice would be much appreciated

Can you tell some more about your application setup?

One way is to use MQTT Engine to subscribe to the MQTT broker.
It will automatically create ignition tags for all mqtt topics.

You can use the publish function of MQTT engine (or transmission) to publish mqtt topics.

system.cirruslink.engine.publish('MQTT_SERVER', 'your/uns/topic', payloadJson, qos, retained)

For the payload, you could use a python dictionary and encode it as a json using jsonEncode.

# Prepare the payload
payload = {}
payload['value'] = newValue.value
payload['quality'] = str(newValue.quality)			
payload['timestamp'] = system.date.format(newValue.timestamp, "yyyy-MM-dd HH:mm:ss.SSS")

payloadJson = system.util.jsonEncode(payload)

https://docs.chariot.io/display/CLD80/MQTT+Publishing+via+MQTT+Engine

Our company put built and UNS that is using Mosquito to push the data to central hub so they can overview all the plants at once. In side the UNS i can create a client that read the information that i send to them then that turns that information into a specific name structure that they want in the mqtt cloud.