There was an error while loading. Please reload this page.
1 parent ad1b0ed commit f186518Copy full SHA for f186518
iot/mqtt_example/cloudiot_mqtt_example_nodejs.js
@@ -202,6 +202,7 @@ let connectionArgs = {
202
let iatTime = parseInt(Date.now() / 1000);
203
let client = mqtt.connect(connectionArgs);
204
205
+// Subscribe to the /devices/{device-id}/config topic to receive config updates.
206
client.subscribe(`/devices/${argv.deviceId}/config`);
207
208
// The MQTT topic that this device will publish data to. The MQTT
0 commit comments