Skip to content

Commit

Permalink
Refactor fleet provisioning service test
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Sep 9, 2024
1 parent e435e33 commit 09c3b6c
Show file tree
Hide file tree
Showing 3 changed files with 408 additions and 384 deletions.
2 changes: 1 addition & 1 deletion samples/fleet_provisioning/fleet_provisioning/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ int main(int argc, char *argv[])
{
/************************ Setup ****************************/

// Do the global initialization for the API
// Do the global initialization for the API
ApiHandle apiHandle;

/**
Expand Down
6 changes: 3 additions & 3 deletions samples/fleet_provisioning/mqtt5_fleet_provisioning/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ struct RegisterThingContext
/**
* Create MQTT5 client.
*/
std::shared_ptr<Aws::Crt::Mqtt5::Mqtt5Client> createMqtt5Client(Mqtt5ClientContext &ctx, const Utils::cmdData &cmdData)
std::shared_ptr<Aws::Crt::Mqtt5::Mqtt5Client> createMqtt5Client(const Utils::cmdData &cmdData, Mqtt5ClientContext &ctx)
{
// Create the MQTT5 builder and populate it with data from cmdData.
Aws::Iot::Mqtt5ClientBuilder *builder = Aws::Iot::Mqtt5ClientBuilder::NewMqtt5ClientBuilderWithMtlsFromPath(
Expand Down Expand Up @@ -418,7 +418,7 @@ int main(int argc, char *argv[])
{
/************************ Setup ****************************/

// Do the global initialization for the API
// Do the global initialization for the API
ApiHandle apiHandle;

/**
Expand All @@ -429,7 +429,7 @@ int main(int argc, char *argv[])
Utils::cmdData cmdData = Utils::parseSampleInputFleetProvisioning(argc, argv, &apiHandle);

Mqtt5ClientContext mqtt5ClientContext;
auto client = createMqtt5Client(mqtt5ClientContext, cmdData);
auto client = createMqtt5Client(cmdData, mqtt5ClientContext);

/************************ Run the sample ****************************/

Expand Down
Loading

0 comments on commit 09c3b6c

Please sign in to comment.