# MQTT Package?

**URL:** <https://discourse.julialang.org/t/mqtt-package/83148>\
**Category:** General Usage\
**Tags:** question, package\
**Created:** [June 21, 2022, 9:16pm UTC](https://discourse.julialang.org/t/mqtt-package/83148 "2022-06-21T21:16:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sampope](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@sampope](https://discourse.julialang.org/u/sampope)\
**Post date:** [June 21, 2022, 9:16pm UTC](https://discourse.julialang.org/t/mqtt-package/83148/1 "2022-06-21T21:16:37Z")

</div>

Hi,

I need to interact with a [MQTT](https://mqtt.org/) broker service. JuliaHub lists no packages for MQTT itself. I found [MQTT.jl](https://github.com/rweilbacher/MQTT.jl) on github from 4 years ago. However it doesn’t compile as a package. and it doesn’t run well at all. I started to update it for current julia (1.7.3), but I seem to run into more issues. Before I sidetrack myself with updating MQTT.jl, does anyone know of a working julia MQTT interface?

Thanks!

---

<div class="post-metadata">

**Author:** ![sampope](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@sampope](https://discourse.julialang.org/u/sampope)\
**Post date:** [June 21, 2022, 9:25pm UTC](https://discourse.julialang.org/t/mqtt-package/83148/2 "2022-06-21T21:25:41Z")

</div>

Replying to my own thread, I found this [recent fork](https://github.com/denglerchr/Mosquitto.jl) of MQTT.jl which is not a package, but works enough for now.

---

<div class="post-metadata">

**Author:** ![Pascal\_Buhler](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pascal_buhler/32/45582_2.png) [@Pascal\_Buhler](https://discourse.julialang.org/u/Pascal_Buhler)\
**Post date:** [July 21, 2023, 6:52am UTC](https://discourse.julialang.org/t/mqtt-package/83148/3 "2023-07-21T06:52:07Z")

</div>

When does the MQTT package going to be official and can be imported by pkg?

---

<div class="post-metadata">

**Author:** ![Christian\_Dengler](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christian_dengler/32/20969_2.png) [@Christian\_Dengler](https://discourse.julialang.org/u/Christian_Dengler)\
**Post date:** [January 17, 2024, 7:10am UTC](https://discourse.julialang.org/t/mqtt-package/83148/4 "2024-01-17T07:10:50Z")

</div>

Hello, this is available now, the Mosquitto package is registered. You can just do “]add Mosquitto” in a Julia REPL to install the package.  
The current version should work out of the box, if not, please file an issue. Before releasing a 1.0 I still want to rework a bit how properties for MQTTv5 work and add some documentation, but this will not happen tomorrow, needs a few boring weekends.

---

<div class="post-metadata">

**Author:** ![Pascal\_Buhler](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pascal_buhler/32/45582_2.png) [@Pascal\_Buhler](https://discourse.julialang.org/u/Pascal_Buhler)\
**Post date:** [January 19, 2024, 12:01pm UTC](https://discourse.julialang.org/t/mqtt-package/83148/5 "2024-01-19T12:01:58Z")

</div>

the command “connect” shows me the modbus connect, not the mosquitto connect?

---

<div class="post-metadata">

**Author:** ![Christian\_Dengler](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christian_dengler/32/20969_2.png) [@Christian\_Dengler](https://discourse.julialang.org/u/Christian_Dengler)\
**Post date:** [January 19, 2024, 1:53pm UTC](https://discourse.julialang.org/t/mqtt-package/83148/6 "2024-01-19T13:53:42Z")

</div>

No, the Mosquitto package is not related to Modbus. It is really the Mosquitto connect. If you get a “MOSQ\_ERR\_SUCCESS::mosq\_err\_t = 0” it means the connection should work.

I think its best if you ask the questions related to the package in a new topic or on Github directly, as this topic here is unrelated to that.

---

<div class="post-metadata">

**Author:** ![Pascal\_Buhler](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pascal_buhler/32/45582_2.png) [@Pascal\_Buhler](https://discourse.julialang.org/u/Pascal_Buhler)\
**Post date:** [January 19, 2024, 2:14pm UTC](https://discourse.julialang.org/t/mqtt-package/83148/7 "2024-01-19T14:14:26Z")

</div>

ok, thanks, i will make further investigation. Maybe I’ve done something wrong?

M.f.G. Pascal
