Skip to content

Commit 74bcc22

Browse files
JonathanHensonJustin Boswell
authored and
Justin Boswell
committed
Updated to latest CRT with bug fixes for Aws::Crt::Optional, build fi… (#46)
* Updated to latest CRT with bug fixes for Aws::Crt::Optional, build fixes for shadow_sync, discovery client now uses latest connection manager api.
1 parent 91c874f commit 74bcc22

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ is provided by code that been generated from a model of the service.
3131

3232
## Build from source
3333
```
34-
git clone --branch v0.4.1 https://github.com/awslabs/aws-crt-cpp.git
34+
git clone --branch v0.4.2 https://github.com/awslabs/aws-crt-cpp.git
3535
git clone https://github.com/awslabs/aws-iot-device-sdk-cpp-v2.git
3636
mkdir aws-crt-cpp-build
3737
cd aws-crt-cpp-build

discovery/source/DiscoveryClient.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,12 @@ namespace Aws
134134
}
135135

136136
Crt::Delete(callbackContext, m_allocator);
137-
m_connectionManager->ReleaseConnection(connection);
138137
};
139138

140139
if (!connection->NewClientStream(requestOptions))
141140
{
142141
onDiscoverResponse(nullptr, aws_last_error(), 0);
143142
Crt::Delete(callbackContext, m_allocator);
144-
m_connectionManager->ReleaseConnection(connection);
145143
}
146144

147145
return;

samples/jobs/describe_job_execution/main.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ int main(int argc, char *argv[])
285285
describeJobExecutionRequest.ThingName = thingName;
286286
describeJobExecutionRequest.JobId = jobId;
287287
describeJobExecutionRequest.IncludeJobDocument = true;
288-
describeJobExecutionRequest.ClientToken = Aws::Crt::UUID();
288+
Aws::Crt::UUID uuid;
289+
describeJobExecutionRequest.ClientToken = uuid.ToString();
289290

290291
auto publishHandler = [&](int ioErr) {
291292
if (ioErr)

samples/shadow/shadow_sync/main.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ static void s_changeShadowValue(
8181
fprintf(stdout, "Changing local shadow value to %s.\n", value.c_str());
8282

8383
UpdateShadowRequest updateShadowRequest;
84-
updateShadowRequest.ClientToken = Aws::Crt::UUID();
84+
Aws::Crt::UUID uuid;
85+
updateShadowRequest.ClientToken = uuid.ToString();
8586

8687
JsonObject stateDocument;
8788
JsonObject reported;

0 commit comments

Comments
 (0)