# Publishing data to MQTT broker

**URL:** <https://mangoh.discourse.group/t/publishing-data-to-mqtt-broker/854>\
**Category:** mangOH Red\
**Created:** [October 30, 2017, 1:48pm UTC](https://mangoh.discourse.group/t/publishing-data-to-mqtt-broker/854 "2017-10-30T13:48:58Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![basti](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@basti](https://mangoh.discourse.group/u/basti)\
**Post date:** [November 27, 2017, 8:02am UTC](https://mangoh.discourse.group/t/publishing-data-to-mqtt-broker/854/13 "2017-11-27T08:02:41Z")

</div>

Hi,

@raxsix you might want to have a look at this thread: [MQTT Client Support](http://mangoh.discourse.group/t/mqtt-client-support/160)  
There are other people having the same issues on there. I am using Legato 17.09 and it is working fine. Are you using Developer studio?

@lyao If I understand it correctly, `clientID` takes a string of your choosing as input. In the example code is is using the device’s IMEI number plus “-pub” at the end. So for example `123451612-pub`

---

_[View the full topic](https://mangoh.discourse.group/t/publishing-data-to-mqtt-broker/854)._
