Skip to content

Commit 6e7e8e3

Browse files
authored
Update mqtt_iot_explorer_tc_demo.c
1 parent fcc90e4 commit 6e7e8e3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

devices/l610_tencent_firmware/mqtt_iot_explorer_tc_demo.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void mqtt_demo_task(void)
6666
printf("MQTT: %s\n", state == MQTT_STATE_CONNECTED ? "CONNECTED" : "DISCONNECTED");
6767
}
6868

69-
/* ¿ªÊ¼¶©ÔÄtopic */
69+
7070
size = snprintf(report_reply_topic_name, TOPIC_NAME_MAX_SIZE, "$thing/down/property/%s/%s", product_id, device_name);
7171

7272
if (size < 0 || size > sizeof(report_reply_topic_name) - 1) {
@@ -87,8 +87,7 @@ void mqtt_demo_task(void)
8787

8888

8989
while (1) {
90-
91-
/* Éϱ¨Öµ */
90+
9291
memset(payload, 0, sizeof(payload));
9392
snprintf(payload, sizeof(payload), REPORT_DATA_TEMPLATE, 30);
9493

0 commit comments

Comments
 (0)