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

Update callbacks signature #802

Merged
merged 3 commits into from
Jan 21, 2024
Merged

Update callbacks signature #802

merged 3 commits into from
Jan 21, 2024

Conversation

PierreF
Copy link
Contributor

@PierreF PierreF commented Jan 14, 2024

Fix #659, #687, #656, #715

This add versioning to user-callback. I've make choosing the version mandatory because:

  • We can't default to latest version or it will cause a breaking change on every new callback version
  • I would like to avoid default on version 1 to push new user to the version 2

Making the chose of the version mandatory cause a breaking change.

This PR didn't yet updated the README nor the examples/. This is something that need to be done in this PR.

This PR is based from #801 because I want reason_code > 0 to be supported to ease migration.

@PierreF PierreF merged commit c746c5a into master Jan 21, 2024
12 checks passed
@PierreF PierreF deleted the update-callbacks-signature branch January 21, 2024 10:44
PierreF added a commit that referenced this pull request Jan 21, 2024
PierreF added a commit that referenced this pull request Jan 28, 2024
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.

Confusion about ReasonCode in MQTTv5
1 participant