# Connect a MQTT server

**URL:** <https://forum.inductiveautomation.com/t/connect-a-mqtt-server/17680>\
**Category:** General Discussion\
**Created:** [April 12, 2018, 6:34am UTC](https://forum.inductiveautomation.com/t/connect-a-mqtt-server/17680 "2018-04-12T06:34:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fracarfo](https://avatars.discourse-cdn.com/v4/letter/f/82dd89/32.png) [@fracarfo](https://forum.inductiveautomation.com/u/fracarfo)\
**Post date:** [April 12, 2018, 6:34am UTC](https://forum.inductiveautomation.com/t/connect-a-mqtt-server/17680/1 "2018-04-12T06:34:25Z")

</div>

HI I’m student I’m trying connect a MQTT server with a Java program, I have a suscriptor and publish in code Java.  
When I connect a suscriptor in a server MQTT and I send a message with the publish a message the conection it’s ok.  
but when I try to send a message with a ignition tag with the follow instrucción “system.cirruslink.engine.publish(“Chariot SCADA”,“ac”,str(“da”).encode(),0,0)” it bloks the conection and the suscriptor doens’t recibe never more.  
There are anybody anybody that can help me?

Thanks!!

---

<div class="post-metadata">

**Author:** ![R.Alamsha](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@R.Alamsha](https://forum.inductiveautomation.com/u/R.Alamsha)\
**Post date:** [April 12, 2018, 11:04am UTC](https://forum.inductiveautomation.com/t/connect-a-mqtt-server/17680/2 "2018-04-12T11:04:41Z")

</div>

May be this can help.

> [@OPC UA alternatives (aka Kepserver)?](http://forum.inductiveautomation.com/t/opc-ua-alternatives-aka-kepserver/16962/14):
>
> How to quickly test MQTT with Ignition?: Note: To learn and setup MQTT on ubuntu or RPi, please watch the above 2 MQTT tutorials. Thanks. Install cirruslink MQTT Engine module and activate it. Click the MQTT Engine/settings link on the Ignition web configuration page and add any numer of MQTT servers as shown below. In this case, i have added 2 servers, local ubuntu and cloudmqtt servers. Make sure, you enter your cloudmqtt port number, user name and password as shown in details tab.
