# MQTT Integration not working

**URL:** <https://forums.losant.com/t/mqtt-integration-not-working/3414>\
**Category:** Help\
**Tags:** mqtt\
**Created:** [November 19, 2020, 1:50pm UTC](https://forums.losant.com/t/mqtt-integration-not-working/3414 "2020-11-19T13:50:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Papageorge](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/michael_papageorge/32/3273_2.png) [@Michael\_Papageorge](https://forums.losant.com/u/Michael_Papageorge)\
**Post date:** [November 19, 2020, 1:50pm UTC](https://forums.losant.com/t/mqtt-integration-not-working/3414/1 "2020-11-19T13:50:47Z")

</div>

I am trying to set up an MQTT broker integration but i’m having trouble connecting to it.  
I’m using [[https://docs.losant.com/applications/integrations/#mqtt](https://docs.losant.com/applications/integrations/#mqtt)] to guide me through.

I have put in the client ID, the broker and port, the username and passwoer and the topic. I copied all these from MQTTfx client.  
Am i missin something?

thanks

---

<div class="post-metadata">

**Author:** ![Heath](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/heath/32/3036_2.png) [@Heath](https://forums.losant.com/u/Heath)\
**Post date:** [November 19, 2020, 3:33pm UTC](https://forums.losant.com/t/mqtt-integration-not-working/3414/3 "2020-11-19T15:33:19Z")

</div>

Hey @Michael_Papageorge,

> …but i’m having trouble connecting to it.

The Losant MQTT Integration is used to connect to other MQTT Brokers or Services. For example, if you had an MQTT Broker running on your own servers, this integration would connect to that Broker and be able to Subscribe & Publish to topics.

If you would like to connect to the Losant Broker via MQTTfx, you can do so by providing a valid Device ID as the Client ID, and with a Losant Access Key/Secret pair (key being the Username, and Secret being the Password).

Please let me know if I’ve addressed your question, or if you have any other questions.

Thank you,  
Heath

---

<div class="post-metadata">

**Author:** ![Michael\_Papageorge](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/michael_papageorge/32/3273_2.png) [@Michael\_Papageorge](https://forums.losant.com/u/Michael_Papageorge)\
**Post date:** [November 20, 2020, 9:58am UTC](https://forums.losant.com/t/mqtt-integration-not-working/3414/5 "2020-11-20T09:58:48Z")

</div>

Thanks for the reply.  
Yes i have my own MQTT broker (i’m just using mqttfx as a client) and i want to connect that broker to Losant. I can’t seem to make the integration work.  
thanks

 ![losantttt](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/c/cd68a198294b70816a45f2dc3224a2a62143eb84.png)

---

<div class="post-metadata">

**Author:** ![Heath](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/heath/32/3036_2.png) [@Heath](https://forums.losant.com/u/Heath)\
**Post date:** [November 20, 2020, 4:28pm UTC](https://forums.losant.com/t/mqtt-integration-not-working/3414/7 "2020-11-20T16:28:41Z")

</div>

Hey @Michael_Papageorge,

Are there any warnings or errors in your MQTT Broker logs? You said you were able to connect to your external MQTT Broker via MQTTfx, correct?

Thanks,  
Heath
