Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT support #956

Open
Timtam94 opened this issue Nov 16, 2023 · 12 comments
Open

MQTT support #956

Timtam94 opened this issue Nov 16, 2023 · 12 comments
Labels
broker support Propose a new broker support

Comments

@Timtam94
Copy link

Hi there,

in a lot of my projects in the IoT space I tend to work with RabbitMQ and Kafka but also MQTT. I would really appreciate a framework such as yours, that combine these protocols into one.

Thank you very much for your work!

@Timtam94 Timtam94 added the enhancement New feature or request label Nov 16, 2023
@Lancetnik
Copy link
Member

Thank you for your kind words! We'll support for MQTT for sure in the future, but we should finish with the brokers already in backlog at first 😞

@davorrunje
Copy link
Collaborator

@Timtam94 what lib are you currently using for MQTT?

@Timtam94
Copy link
Author

Thanks for your reply! I am currently using paho-mqtt

@davorrunje
Copy link
Collaborator

How stable it is? It looks not well maintained

@Lancetnik
Copy link
Member

As I know, this is the only one lib for MQTT in python
Probably, it has no commits last time cuz MQTT has no changes for decades

@Timtam94
Copy link
Author

Indeed, I am not aware of another library than that. So far I had no issues with it.

In the industrial sector, MQTT is one of the major protocols, despite it's age.

@Lancetnik Lancetnik added broker support Propose a new broker support and removed enhancement New feature or request labels Nov 19, 2023
@gegnew
Copy link

gegnew commented Nov 20, 2023

There's also an async wrapper for paho: https://github.com/sbtinstruments/aiomqtt

@Lancetnik
Copy link
Member

There's also an async wrapper for paho: https://github.com/sbtinstruments/aiomqtt

Yep, I known about it
But I am not sure about using extra dependencie... Probably, we should (and can) wrap paho by ourselves the same way

@Lancetnik Lancetnik changed the title Feature: Add support for MQTT MQTT support Nov 24, 2023
@Lancetnik Lancetnik pinned this issue Nov 24, 2023
@Lancetnik Lancetnik mentioned this issue Jun 9, 2024
63 tasks
@skewty
Copy link

skewty commented Jun 21, 2024

There's also an async wrapper for paho: https://github.com/sbtinstruments/aiomqtt

Yep, I known about it But I am not sure about using extra dependencie... Probably, we should (and can) wrap paho by ourselves the same way

aiomqtt's dependencies are minimal. Here they are from pyproject.toml

[tool.poetry.dependencies]
python = "^3.8"
paho-mqtt = "^2.1.0"
typing-extensions = {version = "^4.4.0", markers = "python_version < '3.10'"}

Paho recently had a v2 release which aiomqtt is using. Paho uses a legacy callback system and is rather ugly (very non pythonic) to work with. The aiomqtt team is careful not to couple too deep into paho client as to ensure aiomqtt remains easy to maintain. The wrapper is light but non trivial. aiomqtt is likely worth coupling for this reason.

@benedikt-bartscher
Copy link

I know, it's not native mqtt, but you can already use mqtt via the RabbitMQ MQTT Plugin.

@vvanglro
Copy link
Contributor

This looks great too.
https://github.com/agronholm/mqttproto

@Lancetnik
Copy link
Member

This looks great too. https://github.com/agronholm/mqttproto

Yeah, but it is still imperative syntax

Is it really maintained by the man, created anyio and aspcheduler? I think, we can contact with him and use this project as an underline client this case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
broker support Propose a new broker support
Projects
Status: Backlog
Development

No branches or pull requests

7 participants