File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
jobs/describe_job_execution Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ is provided by code that been generated from a model of the service.
31
31
32
32
## Build from source
33
33
```
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
35
35
git clone https://github.com/awslabs/aws-iot-device-sdk-cpp-v2.git
36
36
mkdir aws-crt-cpp-build
37
37
cd aws-crt-cpp-build
Original file line number Diff line number Diff line change @@ -190,7 +190,6 @@ int main(int argc, char *argv[])
190
190
else
191
191
{
192
192
fprintf (stdout, " Connection completed with return code %d\n " , returnCode);
193
- fprintf (stdout, " Connection state %d\n " , static_cast <int >(connection->GetConnectionState ()));
194
193
connectionSucceeded = true ;
195
194
}
196
195
@@ -203,7 +202,7 @@ int main(int argc, char *argv[])
203
202
*/
204
203
auto onDisconnect = [&](Mqtt::MqttConnection &conn) {
205
204
{
206
- fprintf (stdout, " Connection state %d \n " , static_cast < int >(conn. GetConnectionState ()) );
205
+ fprintf (stdout, " Disconnect completed \n " );
207
206
connectionClosed = true ;
208
207
}
209
208
conditionVariable.notify_one ();
@@ -215,6 +214,7 @@ int main(int argc, char *argv[])
215
214
/*
216
215
* Actually perform the connect dance.
217
216
*/
217
+ fprintf (stdout, " Connecting...\n " );
218
218
if (!connection->Connect (" client_id12335456" , true , 0 ))
219
219
{
220
220
fprintf (stderr, " MQTT Connection failed with error %s\n " , ErrorDebugString (connection->LastError ()));
Original file line number Diff line number Diff line change @@ -229,7 +229,6 @@ int main(int argc, char *argv[])
229
229
else
230
230
{
231
231
fprintf (stdout, " Connection completed with return code %d\n " , returnCode);
232
- fprintf (stdout, " Connection state %d\n " , static_cast <int >(connection->GetConnectionState ()));
233
232
connectionSucceeded = true ;
234
233
}
235
234
@@ -242,7 +241,7 @@ int main(int argc, char *argv[])
242
241
*/
243
242
auto onDisconnect = [&](Mqtt::MqttConnection &conn) {
244
243
{
245
- fprintf (stdout, " Connection state %d \n " , static_cast < int >(conn. GetConnectionState ()) );
244
+ fprintf (stdout, " Disconnect completed \n " );
246
245
connectionClosed = true ;
247
246
}
248
247
conditionVariable.notify_one ();
@@ -254,6 +253,7 @@ int main(int argc, char *argv[])
254
253
/*
255
254
* Actually perform the connect dance.
256
255
*/
256
+ fprintf (stdout, " Connecting...\n " );
257
257
if (!connection->Connect (" client_id12335456" , true , 0 ))
258
258
{
259
259
fprintf (stderr, " MQTT Connection failed with error %s\n " , ErrorDebugString (connection->LastError ()));
You can’t perform that action at this time.
0 commit comments