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

Do you plan to provide a callback for automatic reconnection processing? #457

Open
jhkwim opened this issue May 3, 2023 · 4 comments
Open

Comments

@jhkwim
Copy link

jhkwim commented May 3, 2023

I want to display the connection status on the UI while the automatic reconnection option is enabled, but it's difficult to display it on the UI because the callback for automatic reconnection is not connected.

@hannesa2
Copy link
Owner

hannesa2 commented May 3, 2023

As it looks like, you understand the issue perfect. I want to invite you to make a pull request.

@jhkwim
Copy link
Author

jhkwim commented May 9, 2023

ok!

@hoangchungk53qx1
Copy link
Contributor

I will create PR in the near future, It's really necessary!

@hoangchungk53qx1
Copy link
Contributor

https://github.com/hoangchungk53qx1/MqttManager/blob/main/app/src/main/java/com/chungha/mqtt_manager/MainViewModel.kt

You can refer to my example, in this example I set MqttConnectStatus and update status automatically to update the UI.

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