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

Callback context #60

Open
norgepaul opened this issue May 14, 2017 · 1 comment
Open

Callback context #60

norgepaul opened this issue May 14, 2017 · 1 comment

Comments

@norgepaul
Copy link

Is it possible to add add a constructor overload that accepts a context for the callback so we can have non static callback functions?

If not, do you now of a workaround?

Cheers,
Paul

@AndrewWeiss
Copy link

@norgepaul, I had a similar need and actually inherited from this MQTT library and implemented a virtual topicPosted method instead of using a callback. Just add it.

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