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

fix(example): Stop printing error in loop #540

Merged
merged 1 commit into from Dec 16, 2022
Merged

fix(example): Stop printing error in loop #540

merged 1 commit into from Dec 16, 2022

Conversation

h3nill
Copy link
Member

@h3nill h3nill commented Dec 13, 2022

.poll() method on rumqttc clients tries to reconnect to the server incase of any error. and we where printing events in a loop, which was causing client to print error in an infinite loop on terminal if broker was not running.

it is now changed to stop the program and print it in the case client gets an error.

Also change port to 1884 for MQTTv5 examples.

@tekjar tekjar merged commit 4afbde0 into main Dec 16, 2022
@tekjar tekjar deleted the fix-error-loop branch December 16, 2022 12:35
carlocorradini pushed a commit to carlocorradini/rumqtt that referenced this pull request Aug 3, 2023
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

Successfully merging this pull request may close these issues.

None yet

3 participants