From f5ce0e23a3916a6d1a5e36a5b5759e1f06b67e21 Mon Sep 17 00:00:00 2001 From: zogodo <742782908@qq.com> Date: Mon, 17 Feb 2020 19:18:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E5=90=8D=E4=B8=8D=E7=94=A8?= =?UTF-8?q?=20-?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TC1/main.h | 2 +- TC1/mqtt_server/user_mqtt_client.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TC1/main.h b/TC1/main.h index 2a1b177..267d6d9 100644 --- a/TC1/main.h +++ b/TC1/main.h @@ -4,7 +4,7 @@ #include "mico.h" #include "micokit_ext.h" -#define VERSION "v1.0.12" +#define VERSION "v1.0.13" #define TYPE 1 #define TYPE_NAME "zTC1" diff --git a/TC1/mqtt_server/user_mqtt_client.c b/TC1/mqtt_server/user_mqtt_client.c index b050855..2490eb9 100644 --- a/TC1/mqtt_server/user_mqtt_client.c +++ b/TC1/mqtt_server/user_mqtt_client.c @@ -459,7 +459,7 @@ void UserMqttHassAuto(char socket_id) { sprintf(topic_buf, "homeassistant/switch/%s/socket_%d/config", str_mac, socket_id); sprintf(send_buf, - "{\"name\":\"TC1-%s_Socket_%d\"," + "{\"name\":\"TC1_%s_Socket_%d\"," "\"stat_t\":\"homeassistant/switch/%s/socket_%d/state\"," "\"cmd_t\":\"device/ztc1/set\"," "\"pl_on\":\"set socket %s %d 1\"," @@ -483,7 +483,7 @@ void UserMqttHassAutoPower(void) { sprintf(topic_buf, "homeassistant/sensor/%s/power/config", str_mac); sprintf(send_buf, - "{\"name\":\"TC1-%s_Power\"," + "{\"name\":\"TC1_%s_Power\"," "\"state_topic\":\"homeassistant/sensor/%s/power/state\"," "\"unit_of_measurement\":\"W\"," "\"icon\":\"mdi:gauge\","