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

asyncio support? #159

Open
d-Rickyy-b opened this issue Mar 20, 2023 · 2 comments
Open

asyncio support? #159

d-Rickyy-b opened this issue Mar 20, 2023 · 2 comments
Labels
invalid This doesn't seem right long-term

Comments

@d-Rickyy-b
Copy link

Hi there,

due to issues like #148 and #138 I was wondering if it was possible to implement asyncio support in order to simultaneously process new mqtt events and do other stuff concurrently.
asyncio is suggested by adafruit as the way to deal with concurrent tasks. So I was wondering, why the library does not support asyncio (yet?).

Best regards,
Rico

@brentru
Copy link
Member

brentru commented Apr 10, 2023

So I was wondering, why the library does not support asyncio (yet?).

@d-Rickyy-b This library was developed prior to the inclusion of asyncio.

@brentru brentru added invalid This doesn't seem right long-term labels Apr 11, 2023
@crbyxwpzfl
Copy link

hi perhpas this helps. I missed a lot of button presses with minimqtt and wrapped all the minimqtt stuff in a async function. you can use a class to share information between tasks. this solved it I think.
anyways im not to good in this just thought I leave this here. not sure I am helpfull but let me know your concret issue and I try my best

clear and good explained examples by adafruit here and my convoluted example here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right long-term
Projects
None yet
Development

No branches or pull requests

3 participants