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

subscribe Problem #8

Open
salviador opened this issue Jan 17, 2019 · 3 comments
Open

subscribe Problem #8

salviador opened this issue Jan 17, 2019 · 3 comments

Comments

@salviador
Copy link

The library has stopped working for several days, it does not work in the mode "subscribe" , but work in pushMessage

@guglielmino
Copy link
Owner

Can you give more detail? Can you share the code you are using?

@salviador
Copy link
Author

It worked up to a year ago, only a few days ago the function did not work anymore,
Pushe message and never callback

import time
from pushetta import Pushetta

def my_callback(payload):
print payload
print payload["message"]
print payload["channel"]

API_KEY="xxxxxxxxxxxxxxxxxxxxxx"
p=Pushetta(API_KEY)
p.subscribe("Tux_Send_Comando", my_callback)

while True:
time.sleep(10)

@guglielmino
Copy link
Owner

guglielmino commented Jan 20, 2019

It should work now, I had an issue with the MQTT broker serving this kind of subscriptions.
Let me know.

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

No branches or pull requests

2 participants