Skip to content

Commit 1a01e09

Browse files
authored
Update CRT to 1.5.5 + Related Sample Fixes (#140)
* update CRT to 1.5.5 and disconnect on connection for samples * update lock
1 parent 2c4101b commit 1a01e09

File tree

8 files changed

+12800
-847
lines changed

8 files changed

+12800
-847
lines changed

package-lock.json

+2,257-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
"typescript": "^3.9.7"
3131
},
3232
"dependencies": {
33-
"aws-crt": "1.5.2"
33+
"aws-crt": "1.5.5"
3434
}
3535
}

samples/node/basic_discovery/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ async function main(argv: Args) {
211211
constmqtt_client=newmqtt.MqttClient(client_bootstrap);
212212
returnconnect_to_iot(mqtt_client,argv,discovery_response);
213213
}).then(async(connection)=>{
214-
returnexecute_session(connection,argv);
214+
awaitexecute_session(connection,argv);
215+
returnconnection.disconnect();
215216
}).then(()=>{
216217
console.log('Complete!');
217218
})

samples/node/basic_discovery/package-lock.json

+2,433-22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/node/fleet_provisioning/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ async function main(argv: Args) {
329329
awaitexecute_register_thing(identity,tokenasstring,argv);
330330
}
331331

332+
awaitconnection.disconnect();
332333
// Allow node to die if the promise above resolved
333334
clearTimeout(timer);
334335
}

samples/node/fleet_provisioning/package-lock.json

+2,433-22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/node/pub_sub/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ async function main(argv: Args) {
179179

180180
awaitconnection.connect()
181181
awaitexecute_session(connection,argv)
182+
awaitconnection.disconnect()
182183

183184
// Allow node to die if the promise above resolved
184185
clearTimeout(timer);

samples/node/pub_sub/package-lock.json

+5,672-783
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
close