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

Lines changed: 2257 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ async function main(argv: Args) {
211211
const mqtt_client = new mqtt.MqttClient(client_bootstrap);
212212
return connect_to_iot(mqtt_client, argv, discovery_response);
213213
}).then(async (connection) => {
214-
return execute_session(connection, argv);
214+
await execute_session(connection, argv);
215+
return connection.disconnect();
215216
}).then(() => {
216217
console.log('Complete!');
217218
})

samples/node/basic_discovery/package-lock.json

Lines changed: 2433 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/node/fleet_provisioning/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ async function main(argv: Args) {
329329
await execute_register_thing(identity, token as string, argv);
330330
}
331331

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

samples/node/fleet_provisioning/package-lock.json

Lines changed: 2433 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/node/pub_sub/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ async function main(argv: Args) {
179179

180180
await connection.connect()
181181
await execute_session(connection, argv)
182+
await connection.disconnect()
182183

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

samples/node/pub_sub/package-lock.json

Lines changed: 5672 additions & 783 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)