# MQTT publishing

**URL:** <https://forums.losant.com/t/mqtt-publishing/3026>\
**Category:** Help\
**Tags:** mqtt\
**Created:** [June 9, 2020, 2:08pm UTC](https://forums.losant.com/t/mqtt-publishing/3026 "2020-06-09T14:08:20Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![Jose\_Cruz](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/jose_cruz/32/1580_2.png) [@Jose\_Cruz](https://forums.losant.com/u/Jose_Cruz)\
**Post date:** [August 12, 2020, 11:33pm UTC](https://forums.losant.com/t/mqtt-publishing/3026/21 "2020-08-12T23:33:59Z")

</div>

I’ve seen a couple of threads of this issue, I’ve read them extensively but I’m still having some questions. In my case, the MQTT client and Losant MQTT broker work as long as:

1. MQTT Broker URL is correct (which it is)
2. MQTT path matches (whether device or non-device, depending on access key; which it does)
3. Access Key and Secret are correct (which they are)
4. ClientID matches device clientID (which it does but for **just that one device** ):  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/e/ebeea1f327b9ce9d87ad3ce621c6201d0ab81c9b.png)

#4 is my predicament (and what I’m getting at in the threads, seems to be, the same issue) because the client’s MQTT message is/will **not just be on that one device but many**. How do I solve the clientID for not just this one particular device but for all MQTT device msgs? I know I’m beating a dead 🐎 here, but is the solution to my case the same as discussed herewith? I want to make sure, before I keep 🥊 🐎 that I’m on the right 🐎 track… 🔴

---

_[View the full topic](https://forums.losant.com/t/mqtt-publishing/3026)._
