Skip to content

Base class for MqttServiceClients #2

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

Merged
merged 3 commits into from
Dec 11, 2018
Merged

Base class for MqttServiceClients #2

merged 3 commits into from
Dec 11, 2018

Conversation

graebm
Copy link
Contributor

@graebm graebm commented Dec 7, 2018

Most RPC operations use a "nonce" aka "client token" so a response can be associated with a particular request.

For operations that don't use a nonce, a response is associated with whichever request has been waiting the longest, aka "FIFO".

There's a lot of copy/pasted code for handling Nonce vs FIFO operations. This will get cleaned up when we do an error-handling pass, after MQTT gains support for multi-sub and the ability to inform suback callbacks about failures.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Handles dispatching responses to requests based on "nonce" aka "client token".
@graebm graebm requested review from justinboswell and a team December 7, 2018 17:57
@graebm graebm merged commit 41fb821 into master Dec 11, 2018
@graebm graebm deleted the base-class branch December 11, 2018 23:55
DavidOgunsAWS pushed a commit that referenced this pull request Dec 15, 2020
* simplify model
- enums are just strings, like in oldschool python. solves forward compatibility issues
- remove _ExplicitlyNullMixin, explicit null is only needed in document types, which support it without this madness
- remove _UnionMixin. Let the service validate it. Might revamp unions anyway

* simpler __eq__

* type hints

* comment public API
bretambrose added a commit that referenced this pull request Mar 17, 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.

2 participants