Skip to content

Commit

Permalink
Update mqtt_iot_explorer_tc_demo.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Supowang1989 committed Jan 18, 2021
1 parent fcc90e4 commit 6e7e8e3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions devices/l610_tencent_firmware/mqtt_iot_explorer_tc_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void mqtt_demo_task(void)
printf("MQTT: %s\n", state == MQTT_STATE_CONNECTED ? "CONNECTED" : "DISCONNECTED");
}

/* ¿ªÊ¼¶©ÔÄtopic */

size = snprintf(report_reply_topic_name, TOPIC_NAME_MAX_SIZE, "$thing/down/property/%s/%s", product_id, device_name);

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


while (1) {

/* Éϱ¨Öµ */

memset(payload, 0, sizeof(payload));
snprintf(payload, sizeof(payload), REPORT_DATA_TEMPLATE, 30);

Expand Down

0 comments on commit 6e7e8e3

Please sign in to comment.