sabuhish / fastapi-mqtt

fastapi-mqtt is extension for MQTT protocol
https://sabuhish.github.io/fastapi-mqtt/
MIT License
264 stars 42 forks source link

How to use this library with another api endpoint that does something else before return the mqtt topic content in the logic? #72

Closed nttq1sub closed 1 year ago

nttq1sub commented 1 year ago

Can anyone provide any example of using this for a api endpoint that register the username and password before run the mqtt subscribe loop Thanks for contribute.

azogue commented 1 year ago

@luongngochoa

IMHO, that is not the polite way of doing that sort of thing...

What you've done is copy the code from this repository and store it under a new name in your account, with just 1 'init commit', removing all the git history of who, when, and why the code was modified, so now @sabuhish cannot be git blamed (:= thanked 🙏) for anything, and it looks like it's YOUR code, but it's not.

The code is MIT licensed (so of course you can do whatever you want with it), but please don't expect others to contribute 👎

If you need to operate with a modified version of the code, make a fork of it, so it's linked to the original repo, and the git history remains. Then make the changes you need (which can also be checked out for review in the original repo with PRs), and use the code directly from your GitHub account.

If you want to publish new versions of the library in pypi, I would ask why do you need them?

nttq1sub commented 1 year ago

@azogue Ok. Sorry for mistaken. I will delete it right now and hope that the owner will soon be back and see your merge request and @ftapajos and then merge them because it will help so much for the usage of someone like me. Thanks so much for contributed. And I also close this issues and will open a new one if needed.

azogue commented 1 year ago

Wow! Now you edited the title and description of the 'issue' and now my answer is totally out of context 🙈👎