Skip to content

Commit d291d38

Browse files
authored
Update to aws-crt-cpp v0.4.0 (#31)
1 parent ba362fc commit d291d38

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
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.3.1 https://github.com/awslabs/aws-crt-cpp.git
34+
git clone --branch v0.4.0 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

samples/jobs/describe_job_execution/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ int main(int argc, char *argv[])
190190
else
191191
{
192192
fprintf(stdout, "Connection completed with return code %d\n", returnCode);
193-
fprintf(stdout, "Connection state %d\n", static_cast<int>(connection->GetConnectionState()));
194193
connectionSucceeded = true;
195194
}
196195

@@ -203,7 +202,7 @@ int main(int argc, char *argv[])
203202
*/
204203
auto onDisconnect = [&](Mqtt::MqttConnection &conn) {
205204
{
206-
fprintf(stdout, "Connection state %d\n", static_cast<int>(conn.GetConnectionState()));
205+
fprintf(stdout, "Disconnect completed\n");
207206
connectionClosed = true;
208207
}
209208
conditionVariable.notify_one();
@@ -215,6 +214,7 @@ int main(int argc, char *argv[])
215214
/*
216215
* Actually perform the connect dance.
217216
*/
217+
fprintf(stdout, "Connecting...\n");
218218
if (!connection->Connect("client_id12335456", true, 0))
219219
{
220220
fprintf(stderr, "MQTT Connection failed with error %s\n", ErrorDebugString(connection->LastError()));

samples/shadow/shadow_sync/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ int main(int argc, char *argv[])
229229
else
230230
{
231231
fprintf(stdout, "Connection completed with return code %d\n", returnCode);
232-
fprintf(stdout, "Connection state %d\n", static_cast<int>(connection->GetConnectionState()));
233232
connectionSucceeded = true;
234233
}
235234

@@ -242,7 +241,7 @@ int main(int argc, char *argv[])
242241
*/
243242
auto onDisconnect = [&](Mqtt::MqttConnection &conn) {
244243
{
245-
fprintf(stdout, "Connection state %d\n", static_cast<int>(conn.GetConnectionState()));
244+
fprintf(stdout, "Disconnect completed\n");
246245
connectionClosed = true;
247246
}
248247
conditionVariable.notify_one();
@@ -254,6 +253,7 @@ int main(int argc, char *argv[])
254253
/*
255254
* Actually perform the connect dance.
256255
*/
256+
fprintf(stdout, "Connecting...\n");
257257
if (!connection->Connect("client_id12335456", true, 0))
258258
{
259259
fprintf(stderr, "MQTT Connection failed with error %s\n", ErrorDebugString(connection->LastError()));

0 commit comments

Comments
 (0)