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

[add] MQTT backend #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

[add] MQTT backend #41

wants to merge 2 commits into from

Conversation

etnarek
Copy link
Contributor

@etnarek etnarek commented Oct 3, 2019

No description provided.

@etnarek etnarek requested a review from titouanc October 3, 2019 17:02
self.bot.log.debug("Starting.")
self.mqtt.connect(self.host)
while True:
yield from self.loop()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be simpler to simply yield from self.mqtt.loop() here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It isn't a asyc function, it doesn't work

Traceback (most recent call last):
  File "/usr/lib64/python3.4/asyncio/tasks.py", line 240, in _step
    result = coro.send(None)
  File "/home/etnarek/Projet/urlab/lechbot/plugins/mqtt.py", line 64, in startup
    yield from self.mqtt.loop()
TypeError: 'int' object is not iterable

plugins/mqtt.py Outdated Show resolved Hide resolved
Co-Authored-By: iTitou <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants