-
Notifications
You must be signed in to change notification settings - Fork 67
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
Mqtt5to3 adapter #527
Conversation
@@ -303,7 +338,7 @@ namespace Aws | |||
{ | |||
auto connection = reinterpret_cast<MqttConnection *>(user_data); | |||
|
|||
Allocator *allocator = connection->m_owningClient->allocator; | |||
Allocator *allocator = connection->m_allocator; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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()
This reverts commit cf53310.
Updated PR at #528. Close this one. |
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.