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

Handlers calls #282

Merged
merged 4 commits into from
Apr 5, 2024
Merged

Handlers calls #282

merged 4 commits into from
Apr 5, 2024

Conversation

matthiasbeyer
Copy link
Collaborator

Adds handler calls for on_packet_recv and on_qos1_acknowledge.

@TheNeikos
Copy link
Owner

Formatting :O

We call these "handle" functions only after receiving information from
the server (for now), so there's no decision-process to be implemented
by the user.
There's no need to be async here, and the user cannot return values to
cloudmqtt in this case.
Therefore, we call these functions `on_*` because we simply notify the
user of something that happened.

Signed-off-by: Matthias Beyer <[email protected]>
Signed-off-by: Matthias Beyer <[email protected]>
@TheNeikos TheNeikos merged commit a2acf06 into TheNeikos:main Apr 5, 2024
6 of 10 checks passed
@matthiasbeyer matthiasbeyer deleted the handlers-calls branch April 5, 2024 20:11
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.

2 participants