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

Mqtt5to3 adapter #527

Closed
wants to merge 18 commits into from
Closed

Mqtt5to3 adapter #527

wants to merge 18 commits into from

Conversation

xiazhvera
Copy link
Contributor

@xiazhvera xiazhvera commented Aug 2, 2023

Issue #, if available:

Description of changes:
Bind out the Mqtt5 to Mqtt3 adapter.
(Still need update submodules: awslabs/aws-c-mqtt#313)

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

@@ -303,7 +338,7 @@ namespace Aws
{
auto connection = reinterpret_cast<MqttConnection *>(user_data);

Allocator *allocator = connection->m_owningClient->allocator;
Allocator *allocator = connection->m_allocator;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

m_owningClient is a mqtt3 client. As now the m_owningClient is not necessary set for the case of Mqtt5, use the m_allocator of connection instead of using the allocator from mqtt client.

@@ -460,99 +588,57 @@ namespace Aws
return nullptr;
}

uint16_t port = m_port;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move the section to buildClientOption()

@xiazhvera xiazhvera changed the title [WIP] Mqtt5to3 adapter Mqtt5to3 adapter Aug 3, 2023
@xiazhvera xiazhvera marked this pull request as ready for review August 3, 2023 16:41
@xiazhvera
Copy link
Contributor Author

Updated PR at #528. Close this one.

@xiazhvera xiazhvera closed this Aug 3, 2023
@xiazhvera xiazhvera deleted the mqtt5to3Adapter branch December 7, 2023 22:28
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.

1 participant