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

coreMQTT context does not allow user parameters to be passed to the Event Callback #256

Open
TunaBicim opened this issue Jul 20, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@TunaBicim
Copy link

Hello,
I have been using the library on a C++ project and would like to pass the this pointer to the Event Callback to be able to access my class instance.
Is it possible to add a void * pUserData field to the context and pass it to the callback?
Thank you!

@AniruddhaKanhere AniruddhaKanhere added the enhancement New feature or request label Jul 20, 2023
@ActoryOu
Copy link
Member

Hi @TunaBicim,
Thanks for your feedback.
We're discussing this request internally and we'll bring back more info to you.

Thanks!

@ActoryOu
Copy link
Member

ActoryOu commented Jul 27, 2023

For reference, the post from FreeRTOS forum provides a temp solution for this scenario.
We'll keep this issue opened and make a plan to support user context in the callback.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants