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

api endpoint for subscribe #71

Closed
nttq1sub opened this issue Sep 7, 2023 · 1 comment
Closed

api endpoint for subscribe #71

nttq1sub opened this issue Sep 7, 2023 · 1 comment

Comments

@nttq1sub
Copy link

nttq1sub commented Sep 7, 2023

@sabuhish I am trying to create a api endpoint that subscribe to mqtt topic and return data when have api call to that endpoint. How can I implement that? I just see in the example for the publish, not subscribe?
Are you plan to switch to use paho client instead of gmqtt?
And I face a problem that to use mqtt with renew jwt, then use it as credential to subscribe to mqtt broker, in your code I didn't see the implementation for that?
Thanks so much for your support? If anyone want to support on implement above issues, I hope that we can co-operate to do that in case of the author does not have so much time for it.

@sabuhish
Copy link
Owner

@luongngochoa hmm I think the publish endpoint would be meaningful because we want to publish some data by posting, but subscribing should be possible when the app itself starts to run it should listen to certain topics. Paho is not planned since it was not fully implemented asyncio. There is already discussion going on about subscribe on #59 you might join us there.

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

3 participants