Skip to content

Commit f186518

Browse files
noerogAce Nassri
authored andcommitted
Add comment about subscribing for config updates. (GoogleCloudPlatform#550)
1 parent ad1b0ed commit f186518

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

iot/mqtt_example/cloudiot_mqtt_example_nodejs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ let connectionArgs = {
202202
let iatTime = parseInt(Date.now() / 1000);
203203
let client = mqtt.connect(connectionArgs);
204204

205+
// Subscribe to the /devices/{device-id}/config topic to receive config updates.
205206
client.subscribe(`/devices/${argv.deviceId}/config`);
206207

207208
// The MQTT topic that this device will publish data to. The MQTT

0 commit comments

Comments
 (0)