-
Notifications
You must be signed in to change notification settings - Fork 110
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
Mqtt5 Device Defender Support #646
Conversation
const Crt::String &thingName) | ||
: ReportTaskBuilder( | ||
allocator, | ||
Crt::Mqtt::MqttConnection::NewConnectionFromMqtt5Client(mqtt5Client), |
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.
nit: mqtt5Client
can be moved here:
Crt::Mqtt::MqttConnection::NewConnectionFromMqtt5Client(mqtt5Client), | |
Crt::Mqtt::MqttConnection::NewConnectionFromMqtt5Client(std::move(mqtt5Client)), |
static int s_TestMqtt5DeviceDefenderResourceSafety(Aws::Crt::Allocator *allocator, void *ctx) | ||
{ | ||
(void)ctx; | ||
{ |
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.
nit: This new scope contains the whole function body. Is it really required here?
static int s_TestMqtt5DeviceDefenderFailedTest(Aws::Crt::Allocator *allocator, void *ctx) | ||
{ | ||
(void)ctx; | ||
{ |
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.
nit: Another new scope containing the whole body
To run the Device Defender sample, use the following command: | ||
|
||
``` sh | ||
./basic-report --endpoint <endpoint> --cert <path to the certificate> --key <path to the private key> --thing_name <thing name> --ca_file <path to root CA> |
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.
The binary should be mqtt5-basic-report
You can also pass a Certificate Authority file (CA) if your certificate and key combination requires it: | ||
|
||
``` sh | ||
./basic-report --endpoint <endpoint> --cert <path to the certificate> --key <path to the private key> --thing_name <thing name> --ca_file <path to root CA> |
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.
The binary should be mqtt5-basic-report
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.